pub struct SecretFileNames {
pub endpoint: String,
pub region: Option<String>,
pub bucket: String,
pub public_url: String,
pub key_prefix: Option<String>,
pub access_key_id: String,
pub secret_access_key: String,
}Expand description
Secret file names used by UploaderConfig::from_secret_dir_with_names.
Fields§
§endpoint: String§region: Option<String>§bucket: String§public_url: String§key_prefix: Option<String>§access_key_id: String§secret_access_key: StringImplementations§
Source§impl SecretFileNames
impl SecretFileNames
Sourcepub fn with_prefix(prefix: &str) -> Self
pub fn with_prefix(prefix: &str) -> Self
Build secret filenames using a common prefix (e.g., “s3_”).
Sourcepub fn with_suffix(suffix: &str) -> Self
pub fn with_suffix(suffix: &str) -> Self
Build secret filenames using a common suffix (e.g., “_secret”).
Trait Implementations§
Source§impl Clone for SecretFileNames
impl Clone for SecretFileNames
Source§fn clone(&self) -> SecretFileNames
fn clone(&self) -> SecretFileNames
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecretFileNames
impl Debug for SecretFileNames
Auto Trait Implementations§
impl Freeze for SecretFileNames
impl RefUnwindSafe for SecretFileNames
impl Send for SecretFileNames
impl Sync for SecretFileNames
impl Unpin for SecretFileNames
impl UnwindSafe for SecretFileNames
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.