pub enum InnerValue {
Show 16 variants Bool(Bool), I64(I64), Float(Float), U8(U8), I8(I8), U16(U16), I16(I16), U32(U32), I32(I32), U64(U64), Fixed(Fixed), Currency(Currency), String(Str), Range(Range), Array(Array), Object(Object),
}
Expand description

Main value type This is an enum that can hold any of the supported value types

Variants§

§

Bool(Bool)

A boolean value

§

I64(I64)

An signed 64bit integer value

§

Float(Float)

A floating-point value

§

U8(U8)

An unsigned 8bit integer value

§

I8(I8)

An unsigned 8bit integer value

§

U16(U16)

An unsigned 16bit integer value

§

I16(I16)

An signed 16bit integer value

§

U32(U32)

An unsigned 32bit integer value

§

I32(I32)

An signed 32bit integer value

§

U64(U64)

An unsigned 64bit integer value

§

Fixed(Fixed)

A fixed-point value

§

Currency(Currency)

A currency value

§

String(Str)

A string value

§

Range(Range)

A range value This type will always resolve to array in all comparisons and operations

§

Array(Array)

An array value

§

Object(Object)

An object value

Trait Implementations§

source§

impl Clone for InnerValue

source§

fn clone(&self) -> InnerValue

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'de> Deserialize<'de> for InnerValue

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<InnerValue> for Value

source§

fn from(inner: InnerValue) -> Value

Converts to this type from the input type.
source§

impl From<Value> for InnerValue

source§

fn from(value: Value) -> InnerValue

Converts to this type from the input type.
source§

impl Hash for InnerValue

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for InnerValue

source§

fn eq(&self, other: &InnerValue) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for InnerValue

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for InnerValue

source§

impl StructuralPartialEq for InnerValue

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,