Enum ion_binary_rs::IonValue[][src]

pub enum IonValue {
Show 15 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)

Tuple Fields

Bool(bool)

Tuple Fields

0: bool

Integer(i64)

Tuple Fields

0: i64

BigInteger(BigInt)

Tuple Fields

0: BigInt

Float(f64)

Tuple Fields

0: f64

Decimal(BigDecimal)

Tuple Fields

DateTime(DateTime<FixedOffset>)

Tuple Fields

String(String)

Tuple Fields

0: String

Symbol(String)

Tuple Fields

0: String

Clob(Vec<u8>)

Tuple Fields

0: Vec<u8>

Blob(Vec<u8>)

Tuple Fields

0: Vec<u8>

List(Vec<IonValue>)

Tuple Fields

SExpr(Vec<IonValue>)

Tuple Fields

Struct(HashMap<String, IonValue>)

Tuple Fields

Annotation(Vec<String>, Box<IonValue>)

Tuple Fields

0: Vec<String>

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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)

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.