pub enum ValidationErrorKind {
Show 35 variants
AdditionalItems {
limit: usize,
},
AdditionalProperty {
property: String,
},
AnyOf,
BacktrackLimitExceeded {
message: String,
},
Constant {
expected_value: Value,
},
Contains,
ContentEncoding {
content_encoding: String,
},
ContentMediaType {
content_media_type: String,
},
Custom {
keyword: String,
message: String,
},
Enum {
options: Value,
},
ExclusiveMaximum {
limit: Value,
},
ExclusiveMinimum {
limit: Value,
},
FalseSchema,
Format {
format: String,
},
FromUtf8 {
message: String,
},
MaxItems {
limit: u64,
},
Maximum {
limit: Value,
},
MaxLength {
limit: u64,
},
MaxProperties {
limit: u64,
},
MinItems {
limit: u64,
},
Minimum {
limit: Value,
},
MinLength {
limit: u64,
},
MinProperties {
limit: u64,
},
MultipleOf {
multiple_of: f64,
},
Not,
OneOfMultipleValid,
OneOfNotValid,
Pattern {
pattern: String,
},
PropertyNames {
message: String,
},
Required {
property: String,
},
Type {
expected: String,
},
UnevaluatedItems {
unexpected: Vec<String>,
},
UnevaluatedProperties {
unexpected: Vec<String>,
},
UniqueItems,
Referencing {
message: String,
},
}Expand description
Typed validation error kinds mirroring jsonschema::ValidationErrorKind.
Non-serializable nested errors (e.g. AnyOf, OneOf* context) drop their
sub-error context. Non-serializable error types store a message: String.
Variants§
AdditionalItems
AdditionalProperty
A single unexpected property — split from AdditionalProperties (plural).
AnyOf
BacktrackLimitExceeded
Constant
Contains
ContentEncoding
ContentMediaType
Custom
Enum
ExclusiveMaximum
ExclusiveMinimum
FalseSchema
Format
FromUtf8
MaxItems
Maximum
MaxLength
MaxProperties
MinItems
Minimum
MinLength
MinProperties
MultipleOf
Not
OneOfMultipleValid
OneOfNotValid
Pattern
PropertyNames
Required
Type
UnevaluatedItems
UnevaluatedProperties
UniqueItems
Referencing
Implementations§
Trait Implementations§
Source§impl AsRef<str> for ValidationErrorKind
impl AsRef<str> for ValidationErrorKind
Source§impl Clone for ValidationErrorKind
impl Clone for ValidationErrorKind
Source§fn clone(&self) -> ValidationErrorKind
fn clone(&self) -> ValidationErrorKind
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 ValidationErrorKind
impl Debug for ValidationErrorKind
Source§impl<'de> Deserialize<'de> for ValidationErrorKind
impl<'de> Deserialize<'de> for ValidationErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ValidationErrorKind
impl PartialEq for ValidationErrorKind
Source§impl Serialize for ValidationErrorKind
impl Serialize for ValidationErrorKind
impl StructuralPartialEq for ValidationErrorKind
Auto Trait Implementations§
impl Freeze for ValidationErrorKind
impl RefUnwindSafe for ValidationErrorKind
impl Send for ValidationErrorKind
impl Sync for ValidationErrorKind
impl Unpin for ValidationErrorKind
impl UnsafeUnpin for ValidationErrorKind
impl UnwindSafe for ValidationErrorKind
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