#[non_exhaustive]pub enum JsonExtractErrorKind {
Missing,
WrongType {
expected: &'static str,
},
Invalid(PrimitiveError),
}Expand description
Why extracting a typed reliakit-primitives
value from JSON failed.
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.
Missing
The requested object key was not present.
WrongType
The value was present but not the expected JSON shape.
Invalid(PrimitiveError)
The value had the right shape but failed primitive validation.
Trait Implementations§
Source§impl Clone for JsonExtractErrorKind
impl Clone for JsonExtractErrorKind
Source§fn clone(&self) -> JsonExtractErrorKind
fn clone(&self) -> JsonExtractErrorKind
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 moreSource§impl Debug for JsonExtractErrorKind
impl Debug for JsonExtractErrorKind
impl Eq for JsonExtractErrorKind
Source§impl PartialEq for JsonExtractErrorKind
impl PartialEq for JsonExtractErrorKind
Source§fn eq(&self, other: &JsonExtractErrorKind) -> bool
fn eq(&self, other: &JsonExtractErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JsonExtractErrorKind
Auto Trait Implementations§
impl Freeze for JsonExtractErrorKind
impl RefUnwindSafe for JsonExtractErrorKind
impl Send for JsonExtractErrorKind
impl Sync for JsonExtractErrorKind
impl Unpin for JsonExtractErrorKind
impl UnsafeUnpin for JsonExtractErrorKind
impl UnwindSafe for JsonExtractErrorKind
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