Skip to main content

RedactedOutputExt

Trait RedactedOutputExt 

Source
pub trait RedactedOutputExt {
    // Required method
    fn redacted_output(&self) -> RedactedOutputRef<'_, Self>
       where Self: Sized;
}
Expand description

Extension trait to obtain a redacted output wrapper.

Requires Redactable, which only types with declared redaction behavior implement - raw passthrough leaves like String cannot be certified as redacted output.

Required Methods§

Source

fn redacted_output(&self) -> RedactedOutputRef<'_, Self>
where Self: Sized,

Wraps the value for explicit logging-safe output.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> RedactedOutputExt for T
where T: Redactable + Clone + Debug,