pub struct RedactedOutputRef<'a, T: ?Sized>(/* private fields */);Expand description
Wrapper for explicitly redacting structured types.
Use .redacted_output() to opt into logging-safe output for types that
implement Redactable + Clone + Debug.
Trait Implementations§
impl<T> SlogRedacted for RedactedOutputRef<'_, T>
Source§impl<T> ToRedactedOutput for RedactedOutputRef<'_, T>
impl<T> ToRedactedOutput for RedactedOutputRef<'_, T>
fn to_redacted_output(&self) -> RedactedOutput
impl<T> TracingRedacted for RedactedOutputRef<'_, T>
Source§impl<T> Value for RedactedOutputRef<'_, T>
impl<T> Value for RedactedOutputRef<'_, T>
Source§fn serialize(
&self,
record: &Record<'_>,
key: Key,
serializer: &mut dyn Serializer,
) -> SlogResult
fn serialize( &self, record: &Record<'_>, key: Key, serializer: &mut dyn Serializer, ) -> SlogResult
Serialize self into
Serializer Read moreAuto Trait Implementations§
impl<'a, T> Freeze for RedactedOutputRef<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for RedactedOutputRef<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for RedactedOutputRef<'a, T>
impl<'a, T> Sync for RedactedOutputRef<'a, T>
impl<'a, T> Unpin for RedactedOutputRef<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for RedactedOutputRef<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for RedactedOutputRef<'a, T>where
T: RefUnwindSafe + ?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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> NotSensitiveExt for T
impl<T> NotSensitiveExt for T
Source§fn not_sensitive(&self) -> NotSensitive<&Self>
fn not_sensitive(&self) -> NotSensitive<&Self>
Wraps a reference to the value as explicitly non-sensitive.
impl<T> SendSyncUnwindSafe for Twhere
T: Send + Sync + UnwindSafe + ?Sized,
Source§impl<T> TracingRedactedExt for Twhere
T: ToRedactedOutput,
impl<T> TracingRedactedExt for Twhere
T: ToRedactedOutput,
Source§fn tracing_redacted(&self) -> DisplayValue<String>
fn tracing_redacted(&self) -> DisplayValue<String>
Wraps the value for
tracing logging as a display value. Read more