paralegal_spdg::utils::serde_map_via_vec

Function serialize

Source
pub fn serialize<S: Serializer, K: Serialize, V: Serialize>(
    map: &HashMap<K, V>,
    serializer: S,
) -> Result<S::Ok, S::Error>
Expand description

Serialize a HashMap by first converting to a Vec of tuples and then serializing the vector.

See module level documentation for usage information.