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
| Structprop | Rust / serde |
|---|---|
scalar "true" / "false" | bool |
| scalar integer string | i8–i64, u8–u64 |
| scalar float string | f32, f64 |
scalar "null" | None / () |
| any other scalar | String / &str |
key = { … } | Vec<T> / tuple |
key { … } | struct / map |
Functions§
- from_
str - Deserialize an instance of
Tfrom a structprop-formatted string.