pub struct RedactedString(pub String);Expand description
A wrapper around String that applies redaction when displayed via Display or Debug.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for RedactedString
impl Clone for RedactedString
Source§fn clone(&self) -> RedactedString
fn clone(&self) -> RedactedString
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 RedactedString
impl Debug for RedactedString
Source§impl Default for RedactedString
impl Default for RedactedString
Source§fn default() -> RedactedString
fn default() -> RedactedString
Returns the “default value” for a type. Read more
Source§impl Display for RedactedString
impl Display for RedactedString
Source§impl From<&str> for RedactedString
impl From<&str> for RedactedString
Source§impl From<String> for RedactedString
impl From<String> for RedactedString
Source§impl PartialEq for RedactedString
impl PartialEq for RedactedString
impl Eq for RedactedString
impl StructuralPartialEq for RedactedString
Auto Trait Implementations§
impl Freeze for RedactedString
impl RefUnwindSafe for RedactedString
impl Send for RedactedString
impl Sync for RedactedString
impl Unpin for RedactedString
impl UnsafeUnpin for RedactedString
impl UnwindSafe for RedactedString
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<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.