#[non_exhaustive]pub enum JsonLimitKind {
InputBytes,
Depth,
StringBytes,
KeyBytes,
NumberBytes,
ArrayItems,
ObjectMembers,
TotalNodes,
TotalDecodedStringBytes,
}Expand description
A resource limit that was exceeded while parsing.
#[non_exhaustive]: new limit kinds may be added in a future release.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InputBytes
max_input_bytes exceeded.
Depth
max_depth exceeded.
StringBytes
max_string_bytes exceeded for a single string value.
KeyBytes
max_key_bytes exceeded for a single object key.
NumberBytes
max_number_bytes exceeded for a single number token.
ArrayItems
max_array_items exceeded.
ObjectMembers
max_object_members exceeded.
TotalNodes
max_total_nodes exceeded.
TotalDecodedStringBytes
max_total_decoded_string_bytes exceeded across the document.
Implementations§
Trait Implementations§
Source§impl Clone for JsonLimitKind
impl Clone for JsonLimitKind
Source§fn clone(&self) -> JsonLimitKind
fn clone(&self) -> JsonLimitKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JsonLimitKind
Source§impl Debug for JsonLimitKind
impl Debug for JsonLimitKind
impl Eq for JsonLimitKind
Source§impl Hash for JsonLimitKind
impl Hash for JsonLimitKind
Source§impl PartialEq for JsonLimitKind
impl PartialEq for JsonLimitKind
Source§fn eq(&self, other: &JsonLimitKind) -> bool
fn eq(&self, other: &JsonLimitKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JsonLimitKind
Auto Trait Implementations§
impl Freeze for JsonLimitKind
impl RefUnwindSafe for JsonLimitKind
impl Send for JsonLimitKind
impl Sync for JsonLimitKind
impl Unpin for JsonLimitKind
impl UnsafeUnpin for JsonLimitKind
impl UnwindSafe for JsonLimitKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more