[−][src]Enum ion_binary_rs::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
Null(NullIonValue)
Bool(bool)
Integer(i64)
BigInteger(BigInt)
Float(f64)
Decimal(BigDecimal)
DateTime(DateTime<FixedOffset>)
String(String)
Symbol(String)
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]
fn from(value: BigDecimal) -> IonValue
[src]
impl From<BigInt> for IonValue
[src]
impl From<BigUint> for IonValue
[src]
impl From<DateTime<FixedOffset>> for IonValue
[src]
fn from(value: DateTime<FixedOffset>) -> 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.
fn try_from(value: &IonValue) -> Result<Self, IonParserError>
[src]
impl<'_> TryFrom<&'_ IonValue> for HashMap<String, IonValue>
[src]
type Error = ()
The type returned in the event of a conversion error.
fn try_from(value: &IonValue) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ IonValue> for f32
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: &IonValue) -> Result<Self, IonParserError>
[src]
impl<'_> TryFrom<&'_ IonValue> for DateTime<Utc>
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: &IonValue) -> Result<Self, IonParserError>
[src]
impl<'_> TryFrom<&'_ IonValue> for DateTime<FixedOffset>
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: &IonValue) -> Result<Self, IonParserError>
[src]
impl<'_> TryFrom<&'_ IonValue> for bool
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: &IonValue) -> Result<Self, IonParserError>
[src]
impl<'_> TryFrom<&'_ IonValue> for Vec<u8>
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: &IonValue) -> Result<Self, IonParserError>
[src]
impl<'_> TryFrom<&'_ IonValue> for String
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: &IonValue) -> Result<Self, IonParserError>
[src]
impl<'_> TryFrom<&'_ IonValue> for u64
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: &IonValue) -> Result<Self, IonParserError>
[src]
impl<'_> TryFrom<&'_ IonValue> for i64
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: &IonValue) -> Result<Self, IonParserError>
[src]
impl<'_> TryFrom<&'_ IonValue> for u32
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: &IonValue) -> Result<Self, IonParserError>
[src]
impl<'_> TryFrom<&'_ IonValue> for i32
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: &IonValue) -> Result<Self, IonParserError>
[src]
impl<'_> TryFrom<&'_ IonValue> for BigUint
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: &IonValue) -> Result<Self, IonParserError>
[src]
impl<'_> TryFrom<&'_ IonValue> for BigInt
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: &IonValue) -> Result<Self, IonParserError>
[src]
impl<'_> TryFrom<&'_ IonValue> for f64
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: &IonValue) -> Result<Self, IonParserError>
[src]
impl TryFrom<IonValue> for HashMap<String, IonValue>
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: IonValue) -> Result<Self, Self::Error>
[src]
impl TryFrom<IonValue> for String
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: IonValue) -> Result<Self, IonParserError>
[src]
impl TryFrom<IonValue> for DateTime<Utc>
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: IonValue) -> Result<Self, IonParserError>
[src]
impl TryFrom<IonValue> for DateTime<FixedOffset>
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: IonValue) -> Result<Self, IonParserError>
[src]
impl TryFrom<IonValue> for bool
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: IonValue) -> Result<Self, IonParserError>
[src]
impl TryFrom<IonValue> for Vec<u8>
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: IonValue) -> Result<Self, IonParserError>
[src]
impl TryFrom<IonValue> for u64
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: IonValue) -> Result<Self, IonParserError>
[src]
impl TryFrom<IonValue> for i64
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: IonValue) -> Result<Self, IonParserError>
[src]
impl TryFrom<IonValue> for u32
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: IonValue) -> Result<Self, IonParserError>
[src]
impl TryFrom<IonValue> for i32
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: IonValue) -> Result<Self, IonParserError>
[src]
impl TryFrom<IonValue> for BigUint
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: IonValue) -> Result<Self, IonParserError>
[src]
impl TryFrom<IonValue> for BigInt
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: IonValue) -> Result<Self, IonParserError>
[src]
impl TryFrom<IonValue> for f64
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: IonValue) -> Result<Self, IonParserError>
[src]
impl TryFrom<IonValue> for f32
[src]
type Error = IonParserError
The type returned in the event of a conversion error.
fn try_from(value: IonValue) -> Result<Self, IonParserError>
[src]
Auto Trait Implementations
impl RefUnwindSafe for IonValue
impl Send for IonValue
impl Sync for IonValue
impl Unpin for IonValue
impl UnwindSafe for IonValue
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,