qubit-sanitize 0.2.1

Reusable field and structured object sanitization utilities for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*******************************************************************************
 *
 *    Copyright (c) 2026 Haixing Hu.
 *
 *    SPDX-License-Identifier: Apache-2.0
 *
 *    Licensed under the Apache License, Version 2.0.
 *
 ******************************************************************************/
/// Field-name matching mode used for sensitivity lookup.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum NameMatchMode {
    /// Match only the canonicalized field name exactly.
    Exact,
    /// Match exactly first, then match contextual names by canonical suffix.
    ExactOrSuffix,
}