pub enum ValueData {
Show 43 variants
AnyType,
Untyped,
AnySimpleType,
IDREFS(Vec<IDREF>),
NMTOKENS(Vec<NMTOKEN>),
ENTITIES(Vec<ENTITY>),
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(NMTOKEN),
Name(Name),
NCName(NcName),
ID(ID),
IDREF(IDREF),
ENTITY(ENTITY),
Boolean(bool),
QName(QName),
NamespaceUri(NamespaceUri),
}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(Vec<IDREF>)
a list of IDREF
NMTOKENS(Vec<NMTOKEN>)
a list of NMTOKEN
ENTITIES(Vec<ENTITY>)
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(NMTOKEN)
NameChar+
Name(Name)
NameStartChar NameChar+
NCName(NcName)
(Letter | ‘_’) NCNameChar+ (i.e. a Name without the colon)
ID(ID)
Same format as NCName
IDREF(IDREF)
Same format as NCName
ENTITY(ENTITY)
Same format as NCName
Boolean(bool)
QName(QName)
Qualified Name
NamespaceUri(NamespaceUri)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValueData
impl RefUnwindSafe for ValueData
impl Send for ValueData
impl Sync for ValueData
impl Unpin for ValueData
impl UnsafeUnpin for ValueData
impl UnwindSafe for ValueData
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