Enum xsd_types::DecimalValue
source · pub enum DecimalValue {
Show 14 variants
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),
}Expand description
Any specialized Decimal value.
Variants§
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)
Implementations§
source§impl DecimalValue
impl DecimalValue
pub fn datatype(&self) -> DecimalDatatype
source§impl DecimalValue
impl DecimalValue
pub fn as_ref(&self) -> DecimalValueRef<'_>
Trait Implementations§
source§impl Clone for DecimalValue
impl Clone for DecimalValue
source§fn clone(&self) -> DecimalValue
fn clone(&self) -> DecimalValue
Returns a copy of the value. Read more
1.0.0 · 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 DecimalValue
impl Debug for DecimalValue
source§impl Display for DecimalValue
impl Display for DecimalValue
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<IntValue> for DecimalValue
impl From<IntValue> for DecimalValue
source§impl From<IntegerValue> for DecimalValue
impl From<IntegerValue> for DecimalValue
source§fn from(value: IntegerValue) -> Self
fn from(value: IntegerValue) -> Self
Converts to this type from the input type.
source§impl From<LongValue> for DecimalValue
impl From<LongValue> for DecimalValue
source§impl From<NonNegativeIntegerValue> for DecimalValue
impl From<NonNegativeIntegerValue> for DecimalValue
source§fn from(value: NonNegativeIntegerValue) -> Self
fn from(value: NonNegativeIntegerValue) -> Self
Converts to this type from the input type.
source§impl From<NonPositiveIntegerValue> for DecimalValue
impl From<NonPositiveIntegerValue> for DecimalValue
source§fn from(value: NonPositiveIntegerValue) -> Self
fn from(value: NonPositiveIntegerValue) -> Self
Converts to this type from the input type.
source§impl From<ShortValue> for DecimalValue
impl From<ShortValue> for DecimalValue
source§fn from(value: ShortValue) -> Self
fn from(value: ShortValue) -> Self
Converts to this type from the input type.
source§impl From<UnsignedIntValue> for DecimalValue
impl From<UnsignedIntValue> for DecimalValue
source§fn from(value: UnsignedIntValue) -> Self
fn from(value: UnsignedIntValue) -> Self
Converts to this type from the input type.
source§impl From<UnsignedLongValue> for DecimalValue
impl From<UnsignedLongValue> for DecimalValue
source§fn from(value: UnsignedLongValue) -> Self
fn from(value: UnsignedLongValue) -> Self
Converts to this type from the input type.
source§impl From<UnsignedShortValue> for DecimalValue
impl From<UnsignedShortValue> for DecimalValue
source§fn from(value: UnsignedShortValue) -> Self
fn from(value: UnsignedShortValue) -> Self
Converts to this type from the input type.
source§impl TryFrom<DecimalValue> for IntValue
impl TryFrom<DecimalValue> for IntValue
§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
source§impl TryFrom<DecimalValue> for IntegerValue
impl TryFrom<DecimalValue> for IntegerValue
§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
source§impl TryFrom<DecimalValue> for LongValue
impl TryFrom<DecimalValue> for LongValue
§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
source§impl TryFrom<DecimalValue> for NonNegativeIntegerValue
impl TryFrom<DecimalValue> for NonNegativeIntegerValue
§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
source§impl TryFrom<DecimalValue> for NonPositiveIntegerValue
impl TryFrom<DecimalValue> for NonPositiveIntegerValue
§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
source§impl TryFrom<DecimalValue> for ShortValue
impl TryFrom<DecimalValue> for ShortValue
§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
source§impl TryFrom<DecimalValue> for UnsignedIntValue
impl TryFrom<DecimalValue> for UnsignedIntValue
§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
source§impl TryFrom<DecimalValue> for UnsignedLongValue
impl TryFrom<DecimalValue> for UnsignedLongValue
§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
source§impl TryFrom<DecimalValue> for UnsignedShortValue
impl TryFrom<DecimalValue> for UnsignedShortValue
§type Error = DecimalValue
type Error = DecimalValue
The type returned in the event of a conversion error.
source§fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
fn try_from(value: DecimalValue) -> Result<Self, DecimalValue>
Performs the conversion.
source§impl TryFrom<Value> for DecimalValue
impl TryFrom<Value> for DecimalValue
Auto Trait Implementations§
impl !Freeze for DecimalValue
impl RefUnwindSafe for DecimalValue
impl Send for DecimalValue
impl !Sync for DecimalValue
impl Unpin for DecimalValue
impl UnwindSafe for DecimalValue
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