qubit_redact/policy/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#[must_use]
14#[non_exhaustive]
15#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
16pub enum Sensitivity {
17 /// Low-risk value where keeping a small prefix and suffix is acceptable.
18 Low,
19 /// Moderately sensitive value where only a small suffix is retained.
20 Medium,
21 /// Highly sensitive value replaced by a fixed mask.
22 High,
23 /// Secret value replaced by the strongest configured mask.
24 Secret,
25}