Skip to main content

qubit_json/decode/
json_validated_limit.rs

1// =============================================================================
2//    Copyright (c) 2026 Haixing Hu.
3//
4//    SPDX-License-Identifier: Apache-2.0
5//
6//    Licensed under the Apache License, Version 2.0.
7// =============================================================================
8//! Additional validated decoding limits.
9
10/// Identifies an additional per-document decode limit.
11#[non_exhaustive]
12#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
13pub enum JsonValidatedLimit {
14    /// Value entries plus decoded object-key entries.
15    ValueAndKeyNodes,
16    /// Source bytes inside one encoded string token, excluding quotes.
17    EncodedStringBytes,
18}