Enum serde_value::Value
[−]
[src]
pub enum Value {
Bool(bool),
Usize(usize),
U8(u8),
U16(u16),
U32(u32),
U64(u64),
Isize(isize),
I8(i8),
I16(i16),
I32(i32),
I64(i64),
F32(f32),
F64(f64),
Char(char),
String(String),
Unit,
UnitStruct(&'static str),
Option(Option<Box<Value>>),
Newtype(Box<Value>),
Seq(Vec<Value>),
Map(BTreeMap<Value, Value>),
Bytes(Vec<u8>),
}Variants
Bool(bool)Usize(usize)U8(u8)U16(u16)U32(u32)U64(u64)Isize(isize)I8(i8)I16(i16)I32(i32)I64(i64)F32(f32)F64(f64)Char(char)String(String)UnitUnitStruct(&'static str)Option(Option<Box<Value>>)Newtype(Box<Value>)Seq(Vec<Value>)Map(BTreeMap<Value, Value>)Bytes(Vec<u8>)Methods
impl Value[src]
fn deserializer(self) -> Deserializer
fn deserialize_into<T: Deserialize>(self) -> Result<T, DeserializerError>
Trait Implementations
impl Debug for Value[src]
impl Clone for Value[src]
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for Value[src]
fn eq(&self, rhs: &Self) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl PartialOrd for Value[src]
fn partial_cmp(&self, rhs: &Self) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Eq for Value[src]
impl Ord for Value[src]
fn cmp(&self, rhs: &Self) -> Ordering
This method returns an Ordering between self and other. Read more
impl Deserialize for Value[src]
fn deserialize<D: Deserializer>(d: &mut D) -> Result<Self, D::Error>
Deserialize this value given this Deserializer.
impl Serialize for Value[src]
fn serialize<S: Serializer>(&self, s: &mut S) -> Result<(), S::Error>
Serializes this value into this serializer.
impl ValueDeserializer for Value[src]
type Deserializer = ValueDeserializer
The actual deserializer type.
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.