inspect_core/sensitivity.rs
1//! Sensitivity classification for values.
2
3/// Classification of data sensitivity for security-conscious rendering.
4///
5/// Renderers should respect these classifications to prevent accidental
6/// disclosure of sensitive information in logs, debugging output, or UIs.
7#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Hash)]
8pub enum Sensitivity {
9 /// Normal data with no special handling.
10 #[default]
11 Normal,
12
13 /// Sensitive data that should be handled carefully (e.g., email, PII).
14 ///
15 /// Renderers may show this data but should flag it appropriately.
16 Sensitive,
17
18 /// Secret data that should never be displayed (e.g., passwords, tokens).
19 ///
20 /// Renderers must redact or hide this data.
21 Secret,
22
23 /// Hidden data that should be entirely omitted from output.
24 Hidden,
25}