pub struct ExportS3 {
pub endpoint: Option<String>,
pub region: 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 timeout: Duration,
}Expand description
How to reach the S3-compatible service an export writes to: every key
of [storage.s3] but the bucket and prefix, which --to names, and
allow_versioning, which only the server’s own storage reads.
Fields§
§endpoint: Option<String>The service’s URL; None is AWS S3 for the region.
region: StringThe region, used in request signing.
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.
timeout: DurationHow long one request may take.
Implementations§
Source§impl ExportS3
impl ExportS3
Sourcepub fn for_bucket(&self, bucket: &str, prefix: &str) -> S3Settings
pub fn for_bucket(&self, bucket: &str, prefix: &str) -> S3Settings
The settings for bucket under prefix on this service.
Trait Implementations§
impl Eq for ExportS3
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].
impl StructuralPartialEq for ExportS3
Auto Trait Implementations§
impl Forget for ExportS3
impl Freeze for ExportS3
impl RefUnwindSafe for ExportS3
impl Send for ExportS3
impl Sync for ExportS3
impl Unpin for ExportS3
impl UnsafeUnpin for ExportS3
impl UnwindSafe for ExportS3
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.