Skip to main content

Redactable

Trait Redactable 

Source
pub trait Redactable: SensitiveType {
    // Provided method
    fn redact(self) -> Self { ... }
}
Expand description

Public entrypoint for redaction on traversable types.

This trait is blanket-implemented for all [SensitiveType] types and provides a convenience redact() method.

redact is implemented in terms of the default mapping behavior provided by super::redact::redact, which applies policies associated with classification types.

Provided Methods§

Source

fn redact(self) -> Self

Redacts the value using classification-bound policies.

This consumes self and returns a redacted copy.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Redactable for T
where T: SensitiveType,