pub trait TracingRedactedDebugExt:
Redactable
+ Clone
+ Debug {
// Required method
fn tracing_redacted_debug(&self) -> DebugValue<Self>;
}Expand description
Extension trait for logging structural redacted values as Debug fields.
This is the plain tracing path for types that derive Sensitive or
otherwise implement Redactable. The helper clones and redacts the value
before it reaches the subscriber, then records the redacted clone through
tracing::field::debug.
Required Methods§
Sourcefn tracing_redacted_debug(&self) -> DebugValue<Self>
fn tracing_redacted_debug(&self) -> DebugValue<Self>
Redacts the value and wraps the redacted clone for tracing debug
recording.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".