pub fn serialize_attributes<S>(
    attributes: &HashMap<String, EntryCodes>,
    s: S
) -> Result<S::Ok, S::Error>where
    S: Serializer,