pub struct QuerySecretOptsBuilder<'a> { /* private fields */ }
Expand description
Builder for QuerySecretOpts
.
Implementations§
Source§impl<'a> QuerySecretOptsBuilder<'a>
impl<'a> QuerySecretOptsBuilder<'a>
Sourcepub fn cache_key<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn cache_key<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
If set, the given string will be used as the cache key for this secret. This means that any secrets with the same cache key will be considered equivalent in terms of cache lookups, even if they have different URIs or plaintext values. For example, two secrets with the same cache key provided as secret env vars to other wise equivalent containers will result in the container withExecs hitting the cache for each other. If not set, the cache key for the secret will be derived from its plaintext value as looked up when the secret is constructed.
Sourcepub fn build(&self) -> Result<QuerySecretOpts<'a>, QuerySecretOptsBuilderError>
pub fn build(&self) -> Result<QuerySecretOpts<'a>, QuerySecretOptsBuilderError>
Trait Implementations§
Source§impl<'a> Clone for QuerySecretOptsBuilder<'a>
impl<'a> Clone for QuerySecretOptsBuilder<'a>
Source§fn clone(&self) -> QuerySecretOptsBuilder<'a>
fn clone(&self) -> QuerySecretOptsBuilder<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for QuerySecretOptsBuilder<'a>
impl<'a> RefUnwindSafe for QuerySecretOptsBuilder<'a>
impl<'a> Send for QuerySecretOptsBuilder<'a>
impl<'a> Sync for QuerySecretOptsBuilder<'a>
impl<'a> Unpin for QuerySecretOptsBuilder<'a>
impl<'a> UnwindSafe for QuerySecretOptsBuilder<'a>
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