pub struct Constraints {
pub required: bool,
pub min: Option<u32>,
pub max: Option<u32>,
pub regex: Option<String>,
pub loop_min: Option<u32>,
pub loop_max: Option<u32>,
}Fields§
§required: bool§min: Option<u32>§max: Option<u32>§regex: Option<String>§loop_min: Option<u32>§loop_max: Option<u32>Trait Implementations§
Source§impl Debug for Constraints
impl Debug for Constraints
Auto Trait Implementations§
impl Forget for Constraints
impl Freeze for Constraints
impl Move for Constraints
impl RefUnwindSafe for Constraints
impl Send for Constraints
impl Sync for Constraints
impl Unpin for Constraints
impl UnsafeUnpin for Constraints
impl UnwindSafe for Constraints
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