pub enum ConstraintKind {
MinLength,
MaxLength,
Pattern,
MinInclusive,
MaxInclusive,
TotalDigits,
FractionDigits,
}Expand description
The kind of XSD constraint that was violated.
Variants§
MinLength
xs:minLength — value is shorter than required.
MaxLength
xs:maxLength — value exceeds maximum length.
Pattern
xs:pattern — value does not match the required regex.
MinInclusive
xs:minInclusive — value is below the minimum.
MaxInclusive
xs:maxInclusive — value exceeds the maximum.
TotalDigits
xs:totalDigits — value has too many digits.
FractionDigits
xs:fractionDigits — value has too many fractional digits.
Trait Implementations§
Source§impl Clone for ConstraintKind
impl Clone for ConstraintKind
Source§fn clone(&self) -> ConstraintKind
fn clone(&self) -> ConstraintKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConstraintKind
impl Debug for ConstraintKind
Source§impl PartialEq for ConstraintKind
impl PartialEq for ConstraintKind
impl Copy for ConstraintKind
impl Eq for ConstraintKind
impl StructuralPartialEq for ConstraintKind
Auto Trait Implementations§
impl Freeze for ConstraintKind
impl RefUnwindSafe for ConstraintKind
impl Send for ConstraintKind
impl Sync for ConstraintKind
impl Unpin for ConstraintKind
impl UnsafeUnpin for ConstraintKind
impl UnwindSafe for ConstraintKind
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