pub enum XmlAtomicValue {
Show 22 variants
String(String),
Boolean(bool),
Decimal(Decimal),
Integer(BigInt),
Float(f32),
Double(f64),
DateTime(DateTimeValue),
Date(DateValue),
Time(TimeValue),
Duration(DurationValue),
GYearMonth(GYearMonthValue),
GYear(GYearValue),
GMonthDay(GMonthDayValue),
GDay(GDayValue),
GMonth(GMonthValue),
YearMonthDuration(YearMonthDurationValue),
DayTimeDuration(DayTimeDurationValue),
HexBinary(Vec<u8>),
Base64Binary(Vec<u8>),
AnyUri(String),
QName(QualifiedName),
Notation(QualifiedName),
}Expand description
Atomic XSD value types
This enum holds the actual parsed values for atomic XSD types. For complex types like date/time, we use structured representations.
Variants§
String(String)
xs:string and derived types
Boolean(bool)
xs:boolean
Decimal(Decimal)
xs:decimal
Integer(BigInt)
xs:integer and derived integer types
Float(f32)
xs:float
Double(f64)
xs:double
DateTime(DateTimeValue)
xs:dateTime
Date(DateValue)
xs:date
Time(TimeValue)
xs:time
Duration(DurationValue)
xs:duration
GYearMonth(GYearMonthValue)
xs:gYearMonth
GYear(GYearValue)
xs:gYear
GMonthDay(GMonthDayValue)
xs:gMonthDay
GDay(GDayValue)
xs:gDay
GMonth(GMonthValue)
xs:gMonth
YearMonthDuration(YearMonthDurationValue)
xs:yearMonthDuration (XSD 1.1)
DayTimeDuration(DayTimeDurationValue)
xs:dayTimeDuration (XSD 1.1)
HexBinary(Vec<u8>)
xs:hexBinary
Base64Binary(Vec<u8>)
xs:base64Binary
AnyUri(String)
xs:anyURI
QName(QualifiedName)
xs:QName
Notation(QualifiedName)
xs:NOTATION
Implementations§
Source§impl XmlAtomicValue
impl XmlAtomicValue
Sourcepub fn type_code(&self) -> XmlTypeCode
pub fn type_code(&self) -> XmlTypeCode
Get the type code for this atomic value
Sourcepub fn primitive_type(&self) -> PrimitiveTypeCode
pub fn primitive_type(&self) -> PrimitiveTypeCode
Get the primitive type code for this atomic value
Trait Implementations§
Source§impl Clone for XmlAtomicValue
impl Clone for XmlAtomicValue
Source§fn clone(&self) -> XmlAtomicValue
fn clone(&self) -> XmlAtomicValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 XmlAtomicValue
impl Debug for XmlAtomicValue
Source§impl Display for XmlAtomicValue
impl Display for XmlAtomicValue
Source§impl PartialEq for XmlAtomicValue
impl PartialEq for XmlAtomicValue
Source§fn eq(&self, other: &XmlAtomicValue) -> bool
fn eq(&self, other: &XmlAtomicValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for XmlAtomicValue
Auto Trait Implementations§
impl Freeze for XmlAtomicValue
impl RefUnwindSafe for XmlAtomicValue
impl Send for XmlAtomicValue
impl Sync for XmlAtomicValue
impl Unpin for XmlAtomicValue
impl UnsafeUnpin for XmlAtomicValue
impl UnwindSafe for XmlAtomicValue
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