Function serialize

Source
pub fn serialize<S>(
    map: &BTreeMap<Version, Upgrade>,
    serializer: S,
) -> Result<S::Ok, S::Error>
where S: Serializer,