pub struct S3Settings {
pub endpoint: Option<String>,
pub region: String,
pub bucket: String,
pub prefix: String,
pub path_style: bool,
pub access_key_id: Option<String>,
pub secret_access_key_file: Option<PathBuf>,
pub allow_http: bool,
pub ca_file: Option<PathBuf>,
pub allow_versioning: bool,
pub timeout: Duration,
}Expand description
How to reach the bucket: the [storage.s3] table.
Fields§
§endpoint: Option<String>The service’s URL; None is AWS S3 for the region.
region: StringThe region, used in request signing.
bucket: StringThe bucket, which must exist.
prefix: StringWritten before tenants/ in every object’s name.
path_style: boolThe bucket in the path, not in the host name.
access_key_id: Option<String>The access key id; None uses the AWS default credential chain.
secret_access_key_file: Option<PathBuf>The file holding the secret access key.
allow_http: boolAccept an http:// endpoint.
ca_file: Option<PathBuf>PEM certificates of the authorities trusted for the endpoint’s TLS certificate, in place of the system’s; None trusts the system’s.
allow_versioning: boolStart even though the bucket has versioning on.
timeout: DurationHow long one request may take.
Trait Implementations§
Source§impl Clone for S3Settings
impl Clone for S3Settings
Source§impl Debug for S3Settings
impl Debug for S3Settings
impl Eq for S3Settings
Source§impl From<&S3Settings> for ExportS3
impl From<&S3Settings> for ExportS3
Source§fn from(s: &S3Settings) -> ExportS3
fn from(s: &S3Settings) -> ExportS3
The service and keys of [storage.s3].
Source§impl PartialEq for S3Settings
impl PartialEq for S3Settings
impl StructuralPartialEq for S3Settings
Auto Trait Implementations§
impl Forget for S3Settings
impl Freeze for S3Settings
impl RefUnwindSafe for S3Settings
impl Send for S3Settings
impl Sync for S3Settings
impl Unpin for S3Settings
impl UnsafeUnpin for S3Settings
impl UnwindSafe for S3Settings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.