pub struct SecretText(/* private fields */);Expand description
UTF-8 secret text, erased on drop and redacted in diagnostic output. Callers retaining a copy are responsible for erasing that copy too.
Implementations§
Trait Implementations§
Source§impl Clone for SecretText
impl Clone for SecretText
Source§fn clone(&self) -> SecretText
fn clone(&self) -> SecretText
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 moreSource§impl Debug for SecretText
impl Debug for SecretText
Source§impl<'de> Deserialize<'de> for SecretText
impl<'de> Deserialize<'de> for SecretText
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 SecretText
impl RefUnwindSafe for SecretText
impl Send for SecretText
impl Sync for SecretText
impl Unpin for SecretText
impl UnsafeUnpin for SecretText
impl UnwindSafe for SecretText
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