pub enum Value {
Show 42 variants
Boolean(Boolean),
Float(Float),
Double(Double),
Decimal(Decimal),
Integer(Integer),
NonPositiveInteger(NonPositiveInteger),
NegativeInteger(NegativeInteger),
NonNegativeInteger(NonNegativeInteger),
PositiveInteger(PositiveInteger),
UnsignedLong(UnsignedLong),
UnsignedInt(UnsignedInt),
UnsignedShort(UnsignedShort),
UnsignedByte(UnsignedByte),
Long(Long),
Int(Int),
Short(Short),
Byte(Byte),
String(String),
NormalizedString(NormalizedString),
Token(TokenBuf),
Language(LanguageBuf),
Name(NameBuf),
NCName(NCNameBuf),
Id(IdBuf),
IdRef(IdRefBuf),
NMToken(NMTokenBuf),
Duration(Duration),
DayTimeDuration(DayTimeDuration),
YearMonthDuration(YearMonthDuration),
DateTime(DateTime),
DateTimeStamp(DateTimeStamp),
Time(Time),
Date(Date),
GYearMonth(GYearMonth),
GYear(GYear),
GMonthDay(GMonthDay),
GDay(GDay),
GMonth(GMonth),
Base64Binary(Base64BinaryBuf),
HexBinary(HexBinaryBuf),
AnyUri(AnyUriBuf),
QName(QNameBuf),
}
Expand description
Any XSD value.
Variants§
Boolean(Boolean)
Float(Float)
Double(Double)
Decimal(Decimal)
Integer(Integer)
NonPositiveInteger(NonPositiveInteger)
NegativeInteger(NegativeInteger)
NonNegativeInteger(NonNegativeInteger)
PositiveInteger(PositiveInteger)
UnsignedLong(UnsignedLong)
UnsignedInt(UnsignedInt)
UnsignedShort(UnsignedShort)
UnsignedByte(UnsignedByte)
Long(Long)
Int(Int)
Short(Short)
Byte(Byte)
String(String)
NormalizedString(NormalizedString)
Token(TokenBuf)
Language(LanguageBuf)
Name(NameBuf)
NCName(NCNameBuf)
Id(IdBuf)
IdRef(IdRefBuf)
NMToken(NMTokenBuf)
Duration(Duration)
DayTimeDuration(DayTimeDuration)
YearMonthDuration(YearMonthDuration)
DateTime(DateTime)
DateTimeStamp(DateTimeStamp)
Time(Time)
Date(Date)
GYearMonth(GYearMonth)
GYear(GYear)
GMonthDay(GMonthDay)
GDay(GDay)
GMonth(GMonth)
Base64Binary(Base64BinaryBuf)
HexBinary(HexBinaryBuf)
AnyUri(AnyUriBuf)
QName(QNameBuf)
Implementations§
Trait Implementations§
Source§impl From<DateTimeValue> for Value
impl From<DateTimeValue> for Value
Source§fn from(value: DateTimeValue) -> Self
fn from(value: DateTimeValue) -> Self
Converts to this type from the input type.
Source§impl From<DecimalValue> for Value
impl From<DecimalValue> for Value
Source§fn from(value: DecimalValue) -> Self
fn from(value: DecimalValue) -> Self
Converts to this type from the input type.
Source§impl From<DurationValue> for Value
impl From<DurationValue> for Value
Source§fn from(value: DurationValue) -> Self
fn from(value: DurationValue) -> Self
Converts to this type from the input type.
Source§impl From<IntegerValue> for Value
impl From<IntegerValue> for Value
Source§fn from(value: IntegerValue) -> Self
fn from(value: IntegerValue) -> Self
Converts to this type from the input type.
Source§impl From<NCNameValue> for Value
impl From<NCNameValue> for Value
Source§fn from(value: NCNameValue) -> Self
fn from(value: NCNameValue) -> Self
Converts to this type from the input type.
Source§impl From<NonNegativeIntegerValue> for Value
impl From<NonNegativeIntegerValue> for Value
Source§fn from(value: NonNegativeIntegerValue) -> Self
fn from(value: NonNegativeIntegerValue) -> Self
Converts to this type from the input type.
Source§impl From<NonPositiveIntegerValue> for Value
impl From<NonPositiveIntegerValue> for Value
Source§fn from(value: NonPositiveIntegerValue) -> Self
fn from(value: NonPositiveIntegerValue) -> Self
Converts to this type from the input type.
Source§impl From<NormalizedStringValue> for Value
impl From<NormalizedStringValue> for Value
Source§fn from(value: NormalizedStringValue) -> Self
fn from(value: NormalizedStringValue) -> Self
Converts to this type from the input type.
Source§impl From<ShortValue> for Value
impl From<ShortValue> for Value
Source§fn from(value: ShortValue) -> Self
fn from(value: ShortValue) -> Self
Converts to this type from the input type.
Source§impl From<StringValue> for Value
impl From<StringValue> for Value
Source§fn from(value: StringValue) -> Self
fn from(value: StringValue) -> Self
Converts to this type from the input type.
Source§impl From<TokenValue> for Value
impl From<TokenValue> for Value
Source§fn from(value: TokenValue) -> Self
fn from(value: TokenValue) -> Self
Converts to this type from the input type.
Source§impl From<UnsignedIntValue> for Value
impl From<UnsignedIntValue> for Value
Source§fn from(value: UnsignedIntValue) -> Self
fn from(value: UnsignedIntValue) -> Self
Converts to this type from the input type.
Source§impl From<UnsignedLongValue> for Value
impl From<UnsignedLongValue> for Value
Source§fn from(value: UnsignedLongValue) -> Self
fn from(value: UnsignedLongValue) -> Self
Converts to this type from the input type.
Source§impl From<UnsignedShortValue> for Value
impl From<UnsignedShortValue> for Value
Source§fn from(value: UnsignedShortValue) -> Self
fn from(value: UnsignedShortValue) -> Self
Converts to this type from the input type.
Source§impl TryFrom<Value> for DateTimeValue
impl TryFrom<Value> for DateTimeValue
Source§impl TryFrom<Value> for DecimalValue
impl TryFrom<Value> for DecimalValue
Source§impl TryFrom<Value> for DurationValue
impl TryFrom<Value> for DurationValue
Source§impl TryFrom<Value> for IntegerValue
impl TryFrom<Value> for IntegerValue
Source§impl TryFrom<Value> for NCNameValue
impl TryFrom<Value> for NCNameValue
Source§impl TryFrom<Value> for NonNegativeIntegerValue
impl TryFrom<Value> for NonNegativeIntegerValue
Source§impl TryFrom<Value> for NonPositiveIntegerValue
impl TryFrom<Value> for NonPositiveIntegerValue
Source§impl TryFrom<Value> for NormalizedStringValue
impl TryFrom<Value> for NormalizedStringValue
Source§impl TryFrom<Value> for ShortValue
impl TryFrom<Value> for ShortValue
Source§impl TryFrom<Value> for StringValue
impl TryFrom<Value> for StringValue
Source§impl TryFrom<Value> for TokenValue
impl TryFrom<Value> for TokenValue
Source§impl TryFrom<Value> for UnsignedIntValue
impl TryFrom<Value> for UnsignedIntValue
Source§impl TryFrom<Value> for UnsignedLongValue
impl TryFrom<Value> for UnsignedLongValue
Source§impl TryFrom<Value> for UnsignedShortValue
impl TryFrom<Value> for UnsignedShortValue
Auto Trait Implementations§
impl !Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl !Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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