Skip to main content

Module de

Module de 

Source
Expand description

Serde deserializer for structprop documents. Serde Deserializer for the structprop format.

The public entry point is from_str. Internally the input is first parsed into a Value tree by parse(), then the tree is walked by a ValueDeserializer which implements serde::Deserializer.

§Type mapping

StructpropRust / serde
scalar "true" / "false"bool
scalar integer stringi8i64, u8u64
scalar float stringf32, f64
scalar "null"None / ()
any other scalarString / &str
key = { … }Vec<T> / tuple
key { … }struct / map

Functions§

from_str
Deserialize an instance of T from a structprop-formatted string.