pub struct SecretContainer<S> {
pub data: S,
pub o: HashMap<String, Value>,
}
Available on crate features
rotate_rusoto
or rotate_aws_sdk
only.Expand description
Transparent container to inner value.
Prevents accidental override of values not defined by S
Fields§
§data: S
Secret data as defined by S
o: HashMap<String, Value>
Available on crate feature
rotate_with_preserve
only.Other fields not defined by S
. Necessary to preserve
available fields, which are not defined in the type.
Enabled by default with feature rotate_with_preserve
Trait Implementations§
Source§impl<S: Clone> Clone for SecretContainer<S>
impl<S: Clone> Clone for SecretContainer<S>
Source§fn clone(&self) -> SecretContainer<S>
fn clone(&self) -> SecretContainer<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<S: Debug> Debug for SecretContainer<S>
impl<S: Debug> Debug for SecretContainer<S>
Source§impl<S> Deref for SecretContainer<S>
impl<S> Deref for SecretContainer<S>
Source§impl<S> DerefMut for SecretContainer<S>
impl<S> DerefMut for SecretContainer<S>
Source§impl<'de, S> Deserialize<'de> for SecretContainer<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for SecretContainer<S>where
S: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<S> Freeze for SecretContainer<S>where
S: Freeze,
impl<S> RefUnwindSafe for SecretContainer<S>where
S: RefUnwindSafe,
impl<S> Send for SecretContainer<S>where
S: Send,
impl<S> Sync for SecretContainer<S>where
S: Sync,
impl<S> Unpin for SecretContainer<S>where
S: Unpin,
impl<S> UnwindSafe for SecretContainer<S>where
S: UnwindSafe,
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 more