pub trait ToRedactedOutput {
// Required method
fn to_redacted_output(&self) -> RedactedOutput;
}Expand description
Produces a logging-safe output representation.
This trait is intentionally narrower than RedactableWithFormatter.
Passthrough scalar formatting is useful inside redacted templates, but it
does not certify a raw value as safe at a logging boundary.
Required Methods§
fn to_redacted_output(&self) -> RedactedOutput
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl ToRedactedOutput for RedactedJson
Available on crate feature
json only.impl ToRedactedOutput for RedactedOutput
impl<T, P> ToRedactedOutput for SensitiveValue<T, P>where
T: SensitiveWithPolicy<P>,
P: RedactionPolicy,
impl<T> ToRedactedOutput for NotSensitiveDebug<T>where
T: Debug,
impl<T> ToRedactedOutput for NotSensitiveDisplay<T>where
T: Display,
impl<T> ToRedactedOutput for NotSensitiveJson<'_, T>
Available on crate feature
json only.impl<T> ToRedactedOutput for RedactedJsonRef<'_, T>
Available on crate feature
json only.