1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Data classification levels.
//!
//! Variants are ordered from least to most sensitive, enabling comparison-based
//! redaction logic. Mitigates THREAT-I-01 and THREAT-E-01 (data exposure).
use ;
/// The sensitivity level of a piece of data.
///
/// Variants are ordered from least sensitive (`Public`) to most sensitive (`Credentials`).
/// Use `<` / `>` comparisons to enforce redaction thresholds.
///
/// # Examples
///
/// ```
/// use security_core::classification::DataClassification;
///
/// // Variants are ordered for comparison-based redaction logic.
/// assert!(DataClassification::Public < DataClassification::PII);
/// assert!(DataClassification::Credentials > DataClassification::Secret);
/// ```