pub enum Rule {
Range,
Len,
Finite,
Known,
Check(&'static str),
}Expand description
The rule a value broke.
Variants§
Range
range(min = …, max = …): a number outside its bounds (NaN is always outside).
Len
len(min = …, max = …): a string or bytes length (in bytes), or a list’s element
count, outside its bounds.
Finite
finite: a float that is NaN or infinite.
Known
known: an enum value the reader’s schema does not declare.
Check(&'static str)
check(name): the application’s function name returned false.
Trait Implementations§
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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