pub enum FieldConstraintDecl {
MinLength(u64),
MaxLength(u64),
MinItems(u64),
MaxItems(u64),
ExclusiveMin(Decimal),
ExclusiveMax(Decimal),
Min(Decimal),
Max(Decimal),
Pattern(String),
}Expand description
Authored field constraint; validation maps these to the closed enum and type-checks the operand against the field type.
Variants§
MinLength(u64)
MaxLength(u64)
MinItems(u64)
MaxItems(u64)
ExclusiveMin(Decimal)
ExclusiveMax(Decimal)
Min(Decimal)
Max(Decimal)
Pattern(String)
pattern <symbol_ref> - the symbol reference text is stored verbatim
and resolved against the closure’s pattern declarations.
Trait Implementations§
Source§impl Clone for FieldConstraintDecl
impl Clone for FieldConstraintDecl
Source§impl Debug for FieldConstraintDecl
impl Debug for FieldConstraintDecl
Source§impl From<&FieldConstraintDecl> for FieldConstraintDecl
impl From<&FieldConstraintDecl> for FieldConstraintDecl
Source§fn from(c: &FieldConstraintDecl) -> Self
fn from(c: &FieldConstraintDecl) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FieldConstraintDecl
impl PartialEq for FieldConstraintDecl
impl StructuralPartialEq for FieldConstraintDecl
Auto Trait Implementations§
impl Forget for FieldConstraintDecl
impl Freeze for FieldConstraintDecl
impl Move for FieldConstraintDecl
impl RefUnwindSafe for FieldConstraintDecl
impl Send for FieldConstraintDecl
impl Sync for FieldConstraintDecl
impl Unpin for FieldConstraintDecl
impl UnsafeUnpin for FieldConstraintDecl
impl UnwindSafe for FieldConstraintDecl
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