Skip to main content

ToRedactedOutput

Trait ToRedactedOutput 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ToRedactedOutput for RedactedJson

Available on crate feature json only.
Source§

impl ToRedactedOutput for RedactedOutput

Source§

impl<T, P> ToRedactedOutput for SensitiveValue<T, P>

Source§

impl<T> ToRedactedOutput for NotSensitiveDebug<T>
where T: Debug,

Source§

impl<T> ToRedactedOutput for NotSensitiveDisplay<T>
where T: Display,

Source§

impl<T> ToRedactedOutput for NotSensitiveJson<'_, T>
where T: Serialize + ?Sized,

Available on crate feature json only.
Source§

impl<T> ToRedactedOutput for RedactedJsonRef<'_, T>
where T: Redactable + Clone + Serialize,

Available on crate feature json only.
Source§

impl<T> ToRedactedOutput for RedactedOutputRef<'_, T>
where T: Redactable + Clone + Debug,