Enum ion_binary_rs::IonValue [−][src]
pub enum IonValue {}Show variants
Null(NullIonValue), Bool(bool), Integer(i64), BigInteger(BigInt), Float(f64), Decimal(BigDecimal), DateTime(DateTime<FixedOffset>), String(String), Symbol(String), Clob(Vec<u8>), Blob(Vec<u8>), List(Vec<IonValue>), SExpr(Vec<IonValue>), Struct(HashMap<String, IonValue>), Annotation(Vec<String>, Box<IonValue>),
Expand description
The structure wrapping all possible return ion values by the IonParser.
Please, pay attention to Integer and BigInteger. The parser will return the most adequate integer type. If you expect small numbers you can get by with Integer alone, but if you don’t know, you will need to match both types.
Floats are implemented only using f64. Previously there was Float32 and Float64, but there are some problems with IonHash and QLDB when using Float32.
Variants
Null(NullIonValue)
Bool(bool)
Integer(i64)
BigInteger(BigInt)
Float(f64)
Decimal(BigDecimal)
DateTime(DateTime<FixedOffset>)
String(String)
Symbol(String)
Trait Implementations
Performs the conversion.
Performs the conversion.
type Error = SerdeJsonParseError
type Error = SerdeJsonParseError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl RefUnwindSafe for IonValue
impl UnwindSafe for IonValue
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self