pub enum Kind {
Boolean,
Integer {
min: i128,
max: i128,
},
Number {
exponent: bool,
special: bool,
},
DateTime,
Date,
Time,
Duration,
HexBinary,
Text,
}Expand description
What a primitive accepts, in the terms conversion and validation both need.
Variants§
Boolean
true, false, 1, 0, and nothing else.
Integer
An integer within these bounds, inclusive. i128 holds every XSD integer
type with a bound, including xs:unsignedLong; xs:integer itself has
none and is given the widest range this can express.
Number
A decimal or floating value.
Fields
DateTime
Date
Time
Duration
HexBinary
Text
Text, with nothing to check beyond the facets of the type declaring it.
Trait Implementations§
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
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