pub enum ValueType {
Show 20 variants
Bool,
Fixed,
Float,
Currency,
U8,
U16,
U32,
U64,
I8,
I16,
I32,
I64,
Int,
String,
Range,
Array,
Object,
Numeric,
Collection,
Any,
}Expand description
The set of types that can be used as values Bool, Fixed, Float, Currency, Int, String, Array, Object represent real types whereas Numeric, Collection, and Any are virtual types representing a set of types
Numeric is a set of Fixed, Float, Currency, and Int Collection is a set of Array and Object Any is a set of all types
When operations are performed on values, the type of the result is determined using the following order of priority:
- Object
- Array
- String
- Fixed
- Float
- Int
- Bool
Variants§
Bool
A boolean value
Fixed
A fixed-point value
Float
A floating-point value
Currency
A currency value
U8
An unsigned 8bit integer value
U16
An unsigned 16bit integer value
U32
An unsigned 32bit integer value
U64
An unsigned 64bit integer value
I8
A signed 8bit integer value
I16
A signed 16bit integer value
I32
A signed 32bit integer value
I64
A signed 64bit integer value
Int
An integer value
String
A string value
Range
A range value
Array
An array value
Object
An object value
Numeric
A numeric value (fixed, float, currency, or int)
Collection
A collection value (array, range or object)
Any
Any value
Trait Implementations§
source§impl<'de> Deserialize<'de> for ValueType
impl<'de> Deserialize<'de> for ValueType
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
source§impl Ord for ValueType
impl Ord for ValueType
source§impl PartialEq for ValueType
impl PartialEq for ValueType
source§impl PartialOrd for ValueType
impl PartialOrd for ValueType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more