pub enum Facet {
MinExclusive(FacetValue),
MinInclusive(FacetValue),
MaxExclusive(FacetValue),
MaxInclusive(FacetValue),
TotalDigits(FacetValue),
FractionDigits(FacetValue),
Length(FacetValue),
MinLength(FacetValue),
MaxLength(FacetValue),
Enumeration(FacetValue),
WhiteSpace(FacetValue),
Pattern(FacetValue),
}Expand description
A restriction facet.
Variants§
MinExclusive(FacetValue)
Exclusive minimum of the type value.
MinInclusive(FacetValue)
Inclusive minimum of the type value.
MaxExclusive(FacetValue)
Exclusive maximum of the type value.
MaxInclusive(FacetValue)
Inclusive maximum of the type value.
TotalDigits(FacetValue)
Total number of digits in values of this type.
FractionDigits(FacetValue)
Total number of digits after the comma in values of this type.
Length(FacetValue)
Length of values of this type.
MinLength(FacetValue)
Minimum length of values of this type.
MaxLength(FacetValue)
Maximum length of values of this type.
Enumeration(FacetValue)
Possible value. The presence of one of these means the type is an enum.
WhiteSpace(FacetValue)
Handling of white space in the value.
Pattern(FacetValue)
Pattern values of this type must match.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Facet
impl RefUnwindSafe for Facet
impl Send for Facet
impl Sync for Facet
impl Unpin for Facet
impl UnwindSafe for Facet
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