#[non_exhaustive]pub enum BoundedJsonError {
InputTooLarge {
maximum: usize,
actual: usize,
},
CompactRepresentationTooLarge {
maximum: usize,
actual: usize,
},
NestingTooDeep {
maximum: usize,
actual: usize,
},
TooManyContainerEntries {
maximum: usize,
actual: usize,
},
TooManyNodes {
maximum: usize,
actual: usize,
},
StringTooLong {
maximum: usize,
actual: usize,
},
ObjectKeyTooLong {
maximum: usize,
actual: usize,
},
DuplicateObjectKey,
NonFiniteNumber,
NumberOutOfRange,
InvalidJson {
line: usize,
column: usize,
},
}Expand description
JSON rejected by syntax, interoperability, or resource-safety validation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InputTooLarge
The raw input exceeded the configured byte ceiling before parsing.
CompactRepresentationTooLarge
The compact materialized representation exceeded the byte ceiling.
NestingTooDeep
Array/object nesting exceeded the configured depth.
TooManyContainerEntries
One array or object contained too many entries.
TooManyNodes
The document contained too many value nodes.
StringTooLong
One decoded string value exceeded its byte ceiling.
ObjectKeyTooLong
One decoded object member name exceeded its byte ceiling.
DuplicateObjectKey
An object repeated a member name after JSON escape processing.
NonFiniteNumber
A generic Serde source supplied NaN or infinity, which JSON forbids.
NumberOutOfRange
A generic Serde source supplied an integer unsupported by serde_json.
InvalidJson
The input was not exactly one syntactically valid JSON value.
Trait Implementations§
Source§impl Clone for BoundedJsonError
impl Clone for BoundedJsonError
Source§impl Debug for BoundedJsonError
impl Debug for BoundedJsonError
Source§impl Display for BoundedJsonError
impl Display for BoundedJsonError
impl Eq for BoundedJsonError
Source§impl Error for BoundedJsonError
impl Error for BoundedJsonError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()