#[non_exhaustive]pub enum JsonMaterializationErrorReason {
DuplicateKey,
DepthLimit {
limit: usize,
},
ContainerLimit {
limit: usize,
},
InvalidNumber,
}Expand description
Describes why an admitted document could not be materialized as a duplicate-rejecting unique-key value or a bounded last-wins value.
The reason is available independently of diagnostic source retention and never contains input-derived text.
§Examples
use qubit_json::decode::JsonMaterializationErrorReason;
let reason = JsonMaterializationErrorReason::DuplicateKey;
assert_eq!(reason, JsonMaterializationErrorReason::DuplicateKey);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DuplicateKey
A decoded object key appeared more than once.
DepthLimit
Historical compatibility reason; the shared builder no longer produces
it. Current root-inclusive max_depth rejection is reported as a
budget error during lexical admission.
ContainerLimit
The bounded last-wins builder encountered more simultaneously open containers than configured. The associated decode error points to the opening byte of the first over-limit container, unless a later syntax or budget failure takes precedence.
InvalidNumber
An admitted number could not be represented by the intermediate tree.