[][src]Enum ion_binary_rs::IonValue

pub enum IonValue {
    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>),
}

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

impl Clone for IonValue[src]

impl Debug for IonValue[src]

impl Eq for IonValue[src]

impl<I: Into<IonValue> + Clone, '_> From<&'_ [I]> for IonValue[src]

impl<'_> From<&'_ [u8]> for IonValue[src]

impl<I: Into<IonValue> + Clone, '_> From<&'_ I> for IonValue[src]

impl<'_> From<&'_ str> for IonValue[src]

impl From<BigDecimal> for IonValue[src]

impl From<BigInt> for IonValue[src]

impl From<BigUint> for IonValue[src]

impl From<DateTime<FixedOffset>> for IonValue[src]

impl From<DateTime<Utc>> for IonValue[src]

impl<I: Into<IonValue>, K: Into<String>> From<HashMap<K, I, RandomState>> for IonValue[src]

impl From<String> for IonValue[src]

impl<I: Into<IonValue>> From<Vec<I>> for IonValue[src]

impl From<Vec<u8>> for IonValue[src]

impl From<bool> for IonValue[src]

impl From<f32> for IonValue[src]

impl From<f64> for IonValue[src]

impl From<i128> for IonValue[src]

impl From<i16> for IonValue[src]

impl From<i32> for IonValue[src]

impl From<i64> for IonValue[src]

impl From<u128> for IonValue[src]

impl From<u16> for IonValue[src]

impl From<u32> for IonValue[src]

impl From<u64> for IonValue[src]

impl PartialEq<IonValue> for IonValue[src]

impl StructuralPartialEq for IonValue[src]

impl<'_> TryFrom<&'_ IonValue> for Vec<IonValue>[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ IonValue> for HashMap<String, IonValue>[src]

type Error = ()

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ IonValue> for f32[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ IonValue> for DateTime<Utc>[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ IonValue> for DateTime<FixedOffset>[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ IonValue> for bool[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ IonValue> for Vec<u8>[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ IonValue> for String[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ IonValue> for u64[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ IonValue> for i64[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ IonValue> for u32[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ IonValue> for i32[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ IonValue> for BigUint[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ IonValue> for BigInt[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ IonValue> for f64[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl TryFrom<IonValue> for HashMap<String, IonValue>[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl TryFrom<IonValue> for String[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl TryFrom<IonValue> for DateTime<Utc>[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl TryFrom<IonValue> for DateTime<FixedOffset>[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl TryFrom<IonValue> for bool[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl TryFrom<IonValue> for Vec<u8>[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl TryFrom<IonValue> for u64[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl TryFrom<IonValue> for i64[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl TryFrom<IonValue> for u32[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl TryFrom<IonValue> for i32[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl TryFrom<IonValue> for BigUint[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl TryFrom<IonValue> for BigInt[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl TryFrom<IonValue> for f64[src]

type Error = IonParserError

The type returned in the event of a conversion error.

impl TryFrom<IonValue> for f32[src]

type Error = IonParserError

The type returned in the event of a conversion error.

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> Same<T> for T

type Output = T

Should always be Self

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.