Enum polyvalue::InnerValue
source · pub enum InnerValue {
}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
impl Clone for InnerValue
source§fn clone(&self) -> InnerValue
fn clone(&self) -> InnerValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'de> Deserialize<'de> for InnerValue
impl<'de> Deserialize<'de> for InnerValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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
impl From<InnerValue> for Value
source§fn from(inner: InnerValue) -> Value
fn from(inner: InnerValue) -> Value
Converts to this type from the input type.
source§impl From<Value> for InnerValue
impl From<Value> for InnerValue
source§fn from(value: Value) -> InnerValue
fn from(value: Value) -> InnerValue
Converts to this type from the input type.
source§impl Hash for InnerValue
impl Hash for InnerValue
source§impl PartialEq for InnerValue
impl PartialEq for InnerValue
source§fn eq(&self, other: &InnerValue) -> bool
fn eq(&self, other: &InnerValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for InnerValue
impl Serialize for InnerValue
impl Eq for InnerValue
impl StructuralPartialEq for InnerValue
Auto Trait Implementations§
impl RefUnwindSafe for InnerValue
impl Send for InnerValue
impl Sync for InnerValue
impl Unpin for InnerValue
impl UnwindSafe for InnerValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more