pub struct Sensitive { /* private fields */ }
Expand description
Hold a sensitive string, such as a password or an API token. The
value can be accessed (Sensitive::as_str
), but won’t be
printed, even in debug output, and won’t be serialized by serde
.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sensitive
impl<'de> Deserialize<'de> for Sensitive
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 Freeze for Sensitive
impl RefUnwindSafe for Sensitive
impl Send for Sensitive
impl Sync for Sensitive
impl Unpin for Sensitive
impl UnwindSafe for Sensitive
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