Skip to main content

qubit_sanitize/core/
name_match_mode.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/// Field-name matching mode used for sensitivity lookup.
11#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
12pub enum NameMatchMode {
13    /// Match only the canonicalized field name exactly.
14    Exact,
15    /// Match exactly first, then match contextual names by canonical suffix.
16    ExactOrSuffix,
17}