Skip to main content

qubit_sanitize/core/
sensitivity_level.rs

1/*******************************************************************************
2 *
3 *    Copyright (c) 2026 Haixing Hu.
4 *
5 *    SPDX-License-Identifier: Apache-2.0
6 *
7 *    Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10/// Sensitivity level associated with a field name.
11///
12/// Levels let callers use different masking policies for low-risk identifiers,
13/// operational secrets, and values that should be fully redacted.
14#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
15pub enum SensitivityLevel {
16    /// Low-risk value where keeping a small prefix and suffix is usually safe.
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}