inspect-core 0.1.0

Core types and traits for the inspect-rs introspection system
Documentation
//! Sensitivity classification for values.

/// Classification of data sensitivity for security-conscious rendering.
///
/// Renderers should respect these classifications to prevent accidental
/// disclosure of sensitive information in logs, debugging output, or UIs.
#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Hash)]
pub enum Sensitivity {
    /// Normal data with no special handling.
    #[default]
    Normal,

    /// Sensitive data that should be handled carefully (e.g., email, PII).
    ///
    /// Renderers may show this data but should flag it appropriately.
    Sensitive,

    /// Secret data that should never be displayed (e.g., passwords, tokens).
    ///
    /// Renderers must redact or hide this data.
    Secret,

    /// Hidden data that should be entirely omitted from output.
    Hidden,
}