pub struct DispRedacted<T: ?Sized>(pub T);
Expand description
A wrapper around a DisplayRedacted
that implements Display
by displaying the object in its redacted form
if safe-logging is enabled.
(If safe-logging is not enabled, it will de displayed in its unredacted form.)
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: ?Sized> AsRef<T> for DispRedacted<T>
impl<T: ?Sized> AsRef<T> for DispRedacted<T>
Auto Trait Implementations§
impl<T> Freeze for DispRedacted<T>
impl<T> RefUnwindSafe for DispRedacted<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for DispRedacted<T>
impl<T> Sync for DispRedacted<T>
impl<T> Unpin for DispRedacted<T>
impl<T> UnwindSafe for DispRedacted<T>where
T: UnwindSafe + ?Sized,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreLayout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.