Skip to main content

qubit_redact/policy/field/
field_match_kind.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//! The canonical field-name candidate selected by policy classification.
9
10/// Identifies the candidate that matched a configured field rule.
11#[non_exhaustive]
12#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
13pub enum FieldMatchKind {
14    /// The complete canonical input field name matched.
15    Exact,
16    /// A semantic token suffix of the input field name matched.
17    TokenSuffix,
18}