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<ValueValue>),
    Bytes(Vec<u8>),
}

Variants

Methods

impl Value
[src]

Trait Implementations

impl Debug for Value
[src]

Formats the value using the given formatter.

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Value
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Value
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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]

This method returns an Ordering between self and other. Read more

impl Deserialize for Value
[src]

Deserialize this value given this Deserializer.

impl Serialize for Value
[src]

Serializes this value into this serializer.

impl ValueDeserializer for Value
[src]

The actual deserializer type.

Convert this value into a deserializer.