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
Usize
U8
U16
U32
U64
Isize
I8
I16
I32
I64
F32
F64
Char
String
Unit
UnitStruct
Option
Newtype
Seq
Map
Bytes

Methods

impl Value
[src]

fn deserializer(self) -> Deserializer

fn deserialize_into<T: Deserialize>(self) -> Result<T, DeserializerError>

Trait Implementations

impl PartialEq for Value
[src]

fn eq(&self, rhs: &Self) -> bool

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

impl PartialOrd for Value
[src]

fn partial_cmp(&self, rhs: &Self) -> Option<Ordering>

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

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

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

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

impl Eq for Value
[src]

impl Ord for Value
[src]

fn cmp(&self, rhs: &Self) -> Ordering

impl Deserialize for Value
[src]

fn deserialize<D: Deserializer>(d: &mut D) -> Result<Self, D::Error>

impl Serialize for Value
[src]

fn serialize<S: Serializer>(&self, s: &mut S) -> Result<(), S::Error>

impl ValueDeserializer for Value
[src]

type Deserializer = ValueDeserializer

fn into_deserializer(self) -> Self::Deserializer

Derived Implementations

impl Debug for Value
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Value
[src]

fn clone(&self) -> Value

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