Struct imap_codec::secret::Secret
source · pub struct Secret<T>(_);
Expand description
A wrapper to ensure that secrets are redacted during Debug
-printing.
Implementations§
Trait Implementations§
source§impl<'arbitrary, T> Arbitrary<'arbitrary> for Secret<T>where
T: Arbitrary<'arbitrary>,
impl<'arbitrary, T> Arbitrary<'arbitrary> for Secret<T>where T: Arbitrary<'arbitrary>,
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Secret<T>, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Secret<T>, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§impl<'de, T> Deserialize<'de> for Secret<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Secret<T>where T: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Secret<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Secret<T>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> IntoBoundedStatic for Secret<T>where
T: IntoBoundedStatic,
impl<T> IntoBoundedStatic for Secret<T>where T: IntoBoundedStatic,
§type Static = Secret<<T as IntoBoundedStatic>::Static>
type Static = Secret<<T as IntoBoundedStatic>::Static>
The target type is bounded by the
'static
lifetime.source§fn into_static(self) -> <Secret<T> as IntoBoundedStatic>::Static
fn into_static(self) -> <Secret<T> as IntoBoundedStatic>::Static
Convert an owned
T
into an owned T
such that T: 'static
.source§impl<T> PartialEq<Secret<T>> for Secret<T>where
T: PartialEq<T>,
impl<T> PartialEq<Secret<T>> for Secret<T>where T: PartialEq<T>,
source§impl<T> Serialize for Secret<T>where
T: Serialize,
impl<T> Serialize for Secret<T>where T: Serialize,
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl<T> ToBoundedStatic for Secret<T>where
T: ToBoundedStatic,
impl<T> ToBoundedStatic for Secret<T>where T: ToBoundedStatic,
impl<T> Eq for Secret<T>where T: Eq,
impl<T> StructuralEq for Secret<T>
impl<T> StructuralPartialEq for Secret<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Secret<T>where T: RefUnwindSafe,
impl<T> Send for Secret<T>where T: Send,
impl<T> Sync for Secret<T>where T: Sync,
impl<T> Unpin for Secret<T>where T: Unpin,
impl<T> UnwindSafe for Secret<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