pub struct Redacted<T, F: Formatter> { /* private fields */ }Expand description
Derefing wrapper for types that replaces debug outputs with redacted versions
Implementations§
Trait Implementations§
Source§impl<'de, T: Deserialize<'de>, F: Formatter> Deserialize<'de> for Redacted<T, F>
impl<'de, T: Deserialize<'de>, F: Formatter> Deserialize<'de> for Redacted<T, F>
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: Ord, F: Formatter> Ord for Redacted<T, F>
impl<T: Ord, F: Formatter> Ord for Redacted<T, F>
Source§impl<T: PartialOrd, F: Formatter> PartialOrd for Redacted<T, F>
impl<T: PartialOrd, F: Formatter> PartialOrd for Redacted<T, F>
impl<T: Copy, F: Formatter> Copy for Redacted<T, F>
impl<T: Eq, F: Formatter> Eq for Redacted<T, F>
Auto Trait Implementations§
impl<T, F> Freeze for Redacted<T, F>where
T: Freeze,
impl<T, F> RefUnwindSafe for Redacted<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> Send for Redacted<T, F>
impl<T, F> Sync for Redacted<T, F>
impl<T, F> Unpin for Redacted<T, F>
impl<T, F> UnwindSafe for Redacted<T, F>where
T: UnwindSafe,
F: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)