qubit_redact/policy/field/sensitivity.rs
1// =============================================================================
2// Copyright (c) 2025 - 2026 Haixing Hu.
3//
4// SPDX-License-Identifier: Apache-2.0
5//
6// Licensed under the Apache License, Version 2.0.
7// =============================================================================
8//! Sensitivity levels used to select masking behavior.
9
10/// Sensitivity assigned to a field or explicit value.
11///
12/// The strength order is `Low < Medium < High < Secret`.
13#[non_exhaustive]
14#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
15pub enum Sensitivity {
16 /// Low-risk value where keeping a small prefix and suffix is acceptable.
17 Low,
18 /// Moderately sensitive value where only a small suffix is retained.
19 Medium,
20 /// Highly sensitive value replaced by a fixed mask.
21 High,
22 /// Secret value replaced by the strongest configured mask.
23 Secret,
24}