pub enum ConstraintRule {
Range {
min: Option<f64>,
max: Option<f64>,
},
Enum(Vec<String>),
Required,
}Variants§
Range
Numeric value in range
Enum(Vec<String>)
Value must be one of these
Required
Value must not be empty
Trait Implementations§
Source§impl Clone for ConstraintRule
impl Clone for ConstraintRule
Source§fn clone(&self) -> ConstraintRule
fn clone(&self) -> ConstraintRule
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 moreAuto Trait Implementations§
impl Freeze for ConstraintRule
impl RefUnwindSafe for ConstraintRule
impl Send for ConstraintRule
impl Sync for ConstraintRule
impl Unpin for ConstraintRule
impl UnsafeUnpin for ConstraintRule
impl UnwindSafe for ConstraintRule
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