pub enum Value {
Show 41 variants
AnyType,
Untyped,
AnySimpleType,
IDREFS,
NMTOKENS,
ENTITIES,
Numeric,
AnyAtomicType,
UntypedAtomic,
Duration,
Time(DateTime<Local>),
Decimal(Decimal),
Float(f32),
Double(f64),
Integer(i64),
NonPositiveInteger(NonPositiveInteger),
NegativeInteger(NegativeInteger),
Long(i64),
Int(i32),
Short(i16),
Byte(i8),
NonNegativeInteger(NonNegativeInteger),
UnsignedLong(u64),
UnsignedInt(u32),
UnsignedShort(u16),
UnsignedByte(u8),
PositiveInteger(PositiveInteger),
DateTime(DateTime<Local>),
DateTimeStamp,
Date(NaiveDate),
String(String),
NormalizedString(NormalizedString),
Token,
Language,
NMTOKEN,
Name,
NCName,
ID,
IDREF,
ENTITY,
Boolean(bool),
}
Expand description
A concrete type that implements atomic values. These are the 19 predefined types in XSD Schema Part 2, plus five additional types.
Variants§
AnyType
node or simple type
Untyped
a not-yet-validated anyType
AnySimpleType
base type of all simple types. i.e. not a node
IDREFS
a list of IDREF
NMTOKENS
a list of NMTOKEN
ENTITIES
a list of ENTITY
Numeric
Any numeric type
AnyAtomicType
all atomic values (no lists or unions)
UntypedAtomic
untyped atomic value
Duration
Time(DateTime<Local>)
Decimal(Decimal)
Float(f32)
Double(f64)
Integer(i64)
NonPositiveInteger(NonPositiveInteger)
NegativeInteger(NegativeInteger)
Long(i64)
Int(i32)
Short(i16)
Byte(i8)
NonNegativeInteger(NonNegativeInteger)
UnsignedLong(u64)
UnsignedInt(u32)
UnsignedShort(u16)
UnsignedByte(u8)
PositiveInteger(PositiveInteger)
DateTime(DateTime<Local>)
DateTimeStamp
Date(NaiveDate)
String(String)
NormalizedString(NormalizedString)
Token
Like normalizedString, but without leading, trailing and consecutive whitespace
Language
language identifiers [a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*
NMTOKEN
NameChar+
Name
NameStartChar NameChar+
NCName
(Letter | ‘_’) NCNameChar+ (i.e. a Name without the colon)
ID
Same format as NCName
IDREF
Same format as NCName
ENTITY
Same format as NCName
Boolean(bool)
Implementations§
Trait Implementations§
source§impl PartialEq<Value> for Value
impl PartialEq<Value> for Value
source§impl PartialOrd<Value> for Value
impl PartialOrd<Value> for Value
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more