Skip to main content

qubit_redact/policy/field/
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#[non_exhaustive]
12#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
13pub enum FieldNameMatching {
14    /// Matches only the complete canonical field name.
15    Exact,
16    /// Matches the complete name and semantic token suffixes.
17    ExactOrTokenSuffix,
18}