qubit-json 0.8.1

Resource-aware infrastructure for lenient and strict JSON processing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// =============================================================================
//    Copyright (c) 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================
//! Defines budget semantics for serde_json private text payloads.

/// Budget semantics for a serde_json private string payload.
#[derive(Clone, Copy)]
pub(in crate::encode::serializer) enum PrivateTextKind {
    /// Raw JSON fragment rooted at the specified final depth.
    RawValue {
        /// Final root-inclusive depth of the raw JSON fragment.
        depth: usize,
    },
}