#[non_exhaustive]pub enum JsonDepthBudgetError {
ZeroDepth,
}Expand description
Reports which JSON recursion-depth invariant was violated.
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.
ZeroDepth
The recursive container depth limit was zero.
Trait Implementations§
Source§impl Clone for JsonDepthBudgetError
impl Clone for JsonDepthBudgetError
Source§fn clone(&self) -> JsonDepthBudgetError
fn clone(&self) -> JsonDepthBudgetError
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 JsonDepthBudgetError
Source§impl Debug for JsonDepthBudgetError
impl Debug for JsonDepthBudgetError
Source§impl Display for JsonDepthBudgetError
impl Display for JsonDepthBudgetError
Source§fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
Writes a concise description of the violated budget invariant.
§Parameters
formatter- Destination formatting context.
§Returns
The formatter result after writing the error description.
§Errors
Returns fmt::Error when the destination rejects output.
impl Eq for JsonDepthBudgetError
Source§impl Error for JsonDepthBudgetError
impl Error for JsonDepthBudgetError
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 JsonDepthBudgetError
impl PartialEq for JsonDepthBudgetError
impl StructuralPartialEq for JsonDepthBudgetError
Auto Trait Implementations§
impl Freeze for JsonDepthBudgetError
impl RefUnwindSafe for JsonDepthBudgetError
impl Send for JsonDepthBudgetError
impl Sync for JsonDepthBudgetError
impl Unpin for JsonDepthBudgetError
impl UnsafeUnpin for JsonDepthBudgetError
impl UnwindSafe for JsonDepthBudgetError
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