Module rust

Source
Expand description

De/Serialization for Rust’s builtin and std types

Modules§

double_option
Makes a distinction between a missing, unset, or existing value
maps_duplicate_key_is_error
Ensure no duplicate keys exist in a map.
maps_first_key_wins
Ensure that the first key is taken, if duplicate keys exist
sets_duplicate_value_is_error
Ensure no duplicate values exist in a set.
sets_last_value_wins
Ensure that the last value is taken, if duplicate values exist
unwrap_or_skip
Serialize inner value if Some(T). If None, serialize the unit struct ().

Functions§

deserialize_ignore_any
Deserialize any value, ignore it, and return the default value for the type being deserialized.