#[non_exhaustive]pub enum Keyword {
Type {
expected: Vec<String>,
},
Enum {
options: Vec<Value>,
},
Const {
expected: Value,
},
Pattern {
pattern: String,
},
Minimum {
limit: Value,
},
Maximum {
limit: Value,
},
MinItems {
limit: u64,
},
Required {
property: String,
},
AdditionalProperties {
unexpected: Vec<String>,
},
OneOf {
matched: Matched,
},
Not,
False,
}Expand description
A keyword that rejected a value, and what it asked for.
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.
Type
type: the value is none of these types.
Enum
enum: the value is none of these.
Const
const: the value is not this one.
Pattern
pattern: the string does not match.
Minimum
minimum: the number is smaller.
Maximum
maximum: the number is larger.
MinItems
minItems: the list is shorter.
Required
required: the object lacks this key.
AdditionalProperties
additionalProperties: the object has keys the schema does not name.
OneOf
oneOf: the value matched none of the alternatives, or several.
Not
not: the value matched what it must not.
False
A false schema: no value is accepted here.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Keyword
Auto Trait Implementations§
impl Freeze for Keyword
impl RefUnwindSafe for Keyword
impl Send for Keyword
impl Sync for Keyword
impl Unpin for Keyword
impl UnsafeUnpin for Keyword
impl UnwindSafe for Keyword
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