Struct confik::SecretOption
source · pub struct SecretOption<T>(/* private fields */);
Expand description
Builder for trivial types that always contain secrets, regardless of the presence of
#[confik(secret)]
annotations.
This cannot be used for any case where an Option
cannot be used as a builder, and will
not descend into the structure.
Trait Implementations§
source§impl<T> ConfigurationBuilder for SecretOption<T>where
T: DeserializeOwned + Configuration,
impl<T> ConfigurationBuilder for SecretOption<T>where
T: DeserializeOwned + Configuration,
source§fn contains_non_secret_data(&self) -> Result<bool, UnexpectedSecret>
fn contains_non_secret_data(&self) -> Result<bool, UnexpectedSecret>
Should not have an Option
wrapping a secret as <Option<T> as ConfigurationBuilder
is
used for terminal types, therefore the SecretBuilder
wrapping would be external to it.
source§type Target = T
type Target = T
The target that will be converted into. See
Configuration
.source§impl<T: Debug> Debug for SecretOption<T>
impl<T: Debug> Debug for SecretOption<T>
source§impl<T> Default for SecretOption<T>
impl<T> Default for SecretOption<T>
source§impl<'de, T> Deserialize<'de> for SecretOption<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for SecretOption<T>where
T: 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
source§impl<T: Hash> Hash for SecretOption<T>
impl<T: Hash> Hash for SecretOption<T>
source§impl<T: Ord> Ord for SecretOption<T>
impl<T: Ord> Ord for SecretOption<T>
source§fn cmp(&self, other: &SecretOption<T>) -> Ordering
fn cmp(&self, other: &SecretOption<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq for SecretOption<T>
impl<T: PartialEq> PartialEq for SecretOption<T>
source§impl<T: PartialOrd> PartialOrd for SecretOption<T>
impl<T: PartialOrd> PartialOrd for SecretOption<T>
impl<T: Eq> Eq for SecretOption<T>
impl<T> StructuralPartialEq for SecretOption<T>
Auto Trait Implementations§
impl<T> Freeze for SecretOption<T>where
T: Freeze,
impl<T> RefUnwindSafe for SecretOption<T>where
T: RefUnwindSafe,
impl<T> Send for SecretOption<T>where
T: Send,
impl<T> Sync for SecretOption<T>where
T: Sync,
impl<T> Unpin for SecretOption<T>where
T: Unpin,
impl<T> UnwindSafe for SecretOption<T>where
T: 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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.