pub enum NestedValue {
}Expand description
The main data structure used for deserialization.
It can hold tree-like structures of nested maps and vectors.
Variants§
Default(Option<String>)
The default value, which actually does not hold any value and it is used to indicate that the value should be populated with the default value. It contains an optional string with the originator field name.
Bool(bool)
A boolean value.
String(String)
A string value.
F32(f32)
Floating point 32-bit value.
F64(f64)
Floating point 64-bit value.
I16(i16)
Signed 16-bit integer value.
I32(i32)
Signed 32-bit integer value.
I64(i64)
Signed 64-bit integer value.
U8(u8)
Unsigned 8-bit integer value.
U16(u16)
Unsigned 16-bit integer value used for bf16 and f16 serialization
U64(u64)
Unsigned 64-bit integer value.
Map(HashMap<String, NestedValue>)
A map of nested values (typically used for structs)
Vec(Vec<NestedValue>)
A vector of nested values (typically used for vector of structs or numbers)
U8s(Vec<u8>)
A vector of 8-bit unsigned integer values.
U16s(Vec<u16>)
A vector of 16-bit unsigned integer values.
F32s(Vec<f32>)
A vector of 32-bit floating point values.
Unsupported(String)
A value that could not be represented, holding the name of its type in the source. Deserializing it into anything is an error; it can only be ignored.