Skip to main content

qubit_redact/policy/
field_name_matching.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//! Field-name matching modes used by redaction policies.
9
10/// Controls which canonical field-name candidates may match policy rules.
11#[must_use]
12#[non_exhaustive]
13#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
14pub enum FieldNameMatching {
15    /// Matches only the complete canonical field name.
16    Exact,
17    /// Matches the complete name and semantic token suffixes.
18    ExactOrTokenSuffix,
19}