[][src]Enum ion_binary_rs::IonValue

pub enum IonValue {
    Null(NullIonValue),
    Bool(bool),
    Integer(i64),
    BigInteger(BigInt),
    Float32(f32),
    Float64(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>),
}

The structure wrapping all possible return ion values by the IonParser.

Please, pay attention to the Float32, Float 64 (as Ion just defined "float") and the 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.

Variants

Bool(bool)
Integer(i64)
BigInteger(BigInt)
Float32(f32)
Float64(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

impl Clone for IonValue[src]

impl Debug for IonValue[src]

impl Eq for IonValue[src]

impl PartialEq<IonValue> for IonValue[src]

impl StructuralPartialEq for IonValue[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.