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

Bool(bool)
Integer(i64)
BigInteger(BigInt)
Float(f64)
Decimal(BigDecimal)
String(String)
Symbol(String)
Clob(Vec<u8>)
Blob(Vec<u8>)
List(Vec<IonValue>)
SExpr(Vec<IonValue>)
Annotation(Vec<String>, Box<IonValue>)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.