mz_ore

Module 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")].