Module mz_ore::serde

source ·
Expand description

Serde utilities.

Functions§

  • Used to serialize fields of Maps whose key type is not a native string. Annotate the field with #[serde(serialize_with = mz_ore::serde::map_key_to_string)].
  • Used to deserialize fields of std::collections::BTreeMap whose key type is not a native string. Annotate the field with #[serde(deserialize_with = "mz_ore::serde::string_key_to_btree_map")].