Enum serde_lite::Intermediate[][src]

pub enum Intermediate {
    None,
    Bool(bool),
    Number(Number),
    String(String),
    Array(Vec<Intermediate>),
    Map(Map),
}
Expand description

Intermediate data representation.

The format is similar to JSON. It can be serialized/deserialized using serde.

Variants

None
Bool(bool)

Tuple Fields of Bool

0: bool
Number(Number)

Tuple Fields of Number

0: Number
String(String)

Tuple Fields of String

0: String

Tuple Fields of Array

0: Vec<Intermediate>
Map(Map)

Tuple Fields of Map

0: Map

Implementations

Check if the value is None.

Get the value as a boolean (if possible).

Get the value as an f64 (if possible).

Get the value as an i64 (if possible).

Get the value as a u64 (if possible).

Get the value as a character (if possible).

Get the value as a string (if possible).

Get the value as an array (if possible).

Get the value as a map (if possible).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize an object instance.

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Serialize the object.

Serialize this value into the given Serde serializer. Read more

Update the object.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.