pub struct SecretFileNamesBuilder { /* private fields */ }Expand description
Builder for custom secret file mappings.
Implementations§
Source§impl SecretFileNamesBuilder
impl SecretFileNamesBuilder
Sourcepub fn from_prefix(prefix: &str) -> Self
pub fn from_prefix(prefix: &str) -> Self
Start with filenames using a common prefix.
Sourcepub fn from_suffix(suffix: &str) -> Self
pub fn from_suffix(suffix: &str) -> Self
Start with filenames using a common suffix.
pub fn endpoint(self, value: impl Into<String>) -> Self
pub fn region(self, value: Option<impl Into<String>>) -> Self
pub fn bucket(self, value: impl Into<String>) -> Self
pub fn public_url(self, value: impl Into<String>) -> Self
pub fn key_prefix(self, value: Option<impl Into<String>>) -> Self
pub fn access_key_id(self, value: impl Into<String>) -> Self
pub fn secret_access_key(self, value: impl Into<String>) -> Self
pub fn with_prefix(self, prefix: &str) -> Self
pub fn with_suffix(self, suffix: &str) -> Self
Sourcepub fn merge_defaults(self, names: SecretFileNames) -> Self
pub fn merge_defaults(self, names: SecretFileNames) -> Self
Merge in filenames, only filling fields that are currently None.
pub fn build(self) -> Result<SecretFileNames>
Trait Implementations§
Source§impl Clone for SecretFileNamesBuilder
impl Clone for SecretFileNamesBuilder
Source§fn clone(&self) -> SecretFileNamesBuilder
fn clone(&self) -> SecretFileNamesBuilder
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 SecretFileNamesBuilder
impl Debug for SecretFileNamesBuilder
Auto Trait Implementations§
impl Freeze for SecretFileNamesBuilder
impl RefUnwindSafe for SecretFileNamesBuilder
impl Send for SecretFileNamesBuilder
impl Sync for SecretFileNamesBuilder
impl Unpin for SecretFileNamesBuilder
impl UnwindSafe for SecretFileNamesBuilder
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.