pub enum Rules {
Show 19 variants
Numeric,
Required,
Array,
Between {
min: i64,
max: i64,
},
Boolean,
Date,
Email,
InArray {
field: String,
},
GreaterThan {
field: String,
},
LessThan {
field: String,
},
In {
value: String,
},
NotIn {
value: String,
},
Equal {
field: String,
},
EqualString {
value: String,
},
Json,
Max {
value: i64,
},
Min {
value: i64,
},
String,
NoneExist {
field: String,
},
}Variants§
Numeric
Required
Array
Between
Boolean
Date
InArray
GreaterThan
LessThan
In
NotIn
Equal
EqualString
Json
Max
Min
String
NoneExist
Trait Implementations§
impl Eq for Rules
impl StructuralPartialEq for Rules
Auto Trait Implementations§
impl Freeze for Rules
impl RefUnwindSafe for Rules
impl Send for Rules
impl Sync for Rules
impl Unpin for Rules
impl UnwindSafe for Rules
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