pub enum StructuralError {
MaxDepthExceeded {
max_depth: usize,
seen_depth: usize,
},
MaxFieldsExceeded {
max_fields: usize,
seen_fields: usize,
},
MaxStringLengthExceeded {
max_len: usize,
seen_len: usize,
},
MaxArrayLengthExceeded {
max_len: usize,
seen_len: usize,
},
}Expand description
Errors returned when structural limits are exceeded.
Variants§
MaxDepthExceeded
A record exceeded the configured maximum depth.
MaxFieldsExceeded
A record exceeded the configured total field count.
Fields
MaxStringLengthExceeded
A string value exceeded the configured maximum length.
Fields
MaxArrayLengthExceeded
An array contained more items than allowed.
Trait Implementations§
Source§impl Clone for StructuralError
impl Clone for StructuralError
Source§fn clone(&self) -> StructuralError
fn clone(&self) -> StructuralError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StructuralError
impl Debug for StructuralError
Source§impl Display for StructuralError
impl Display for StructuralError
Source§impl Error for StructuralError
impl Error for StructuralError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for StructuralError
impl PartialEq for StructuralError
impl Eq for StructuralError
impl StructuralPartialEq for StructuralError
Auto Trait Implementations§
impl Freeze for StructuralError
impl RefUnwindSafe for StructuralError
impl Send for StructuralError
impl Sync for StructuralError
impl Unpin for StructuralError
impl UnwindSafe for StructuralError
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