pub enum Type {
Primitive(PrimitiveType),
Decimal(DecimalType),
Other(String),
}Expand description
An XSD datatype.
Currently supports the primitive datatypes and the derived xsd:decimal
datatypes.
Variants§
Implementations§
Trait Implementations§
impl Eq for Type
Source§impl From<DecimalType> for Type
impl From<DecimalType> for Type
Source§fn from(input: DecimalType) -> Self
fn from(input: DecimalType) -> Self
Converts to this type from the input type.
Source§impl From<DecimalValue> for Type
impl From<DecimalValue> for Type
Source§fn from(input: DecimalValue) -> Self
fn from(input: DecimalValue) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveType> for Type
impl From<PrimitiveType> for Type
Source§fn from(input: PrimitiveType) -> Self
fn from(input: PrimitiveType) -> Self
Converts to this type from the input type.
Source§impl From<PrimitiveValue> for Type
impl From<PrimitiveValue> for Type
Source§fn from(input: PrimitiveValue) -> Self
fn from(input: PrimitiveValue) -> Self
Converts to this type from the input type.
Source§impl Ord for Type
impl Ord for Type
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Type
impl PartialOrd for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
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