Function mz_ore::serde::map_key_to_string

source ยท
pub fn map_key_to_string<'a, I, K, V, S>(
    map: I,
    serializer: S,
) -> Result<S::Ok, S::Error>
where I: IntoIterator<Item = (&'a K, &'a V)>, K: Display + 'a, V: Serialize + 'a, S: Serializer,
Expand description

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