Skip to main content

SensitiveValues

Trait SensitiveValues 

Source
pub trait SensitiveValues {
    // Required method
    fn visit_sensitive_values(&self, visit: &mut dyn FnMut(&str, &str));

    // Provided method
    fn register_sensitive_values(&self) { ... }
}
Expand description

Visits known credential fields as (canonical field path, value).

Absence from this list does not make a field safe to print. Source diagnostics still use allowlisted projections; the resolver still registers references in every field, independently of this trait.

Required Methods§

Source

fn visit_sensitive_values(&self, visit: &mut dyn FnMut(&str, &str))

Provided Methods§

Source

fn register_sensitive_values(&self)

Registers the credential fields for redaction. Call it before validation or construction, which can report a credential in an error.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§