Module serde_with::rust
source · Expand description
De/Serialization for Rust’s builtin and std types
Modules
- btreemap_as_tuple_listDeprecatedDEPRECATED De/Serialize a
BTreeMap
into a list of tuples - Deserialize from bytes or string
- Deserialize value and return
Default
on error - Deserialize default value if encountering
null
. - Makes a distinction between a missing, unset, or existing value
- hashmap_as_tuple_listDeprecatedDEPRECATED De/Serialize a
HashMap
into a list of tuples - De/Serialize a Map into a list of tuples
- Ensure no duplicate keys exist in a map.
- Ensure that the first key is taken, if duplicate keys exist
- De/Serialize sequences using
FromIterator
andIntoIterator
implementation for it andDisplay
andFromStr
implementation for each element - Ensure no duplicate values exist in a set.
- sets_first_value_winsDeprecatedDEPRECATED Ensure that the first value is taken, if duplicate values exist
- Ensure that the last value is taken, if duplicate values exist
- De/Serialize a
Option<String>
type while transforming the empty string toNone
- This serializes a list of tuples into a map and back
Structs
Functions
- Deserialize any value, ignore it, and return the default value for the type being deserialized.