[][src]Function rocket_okapi::util::add_media_type

pub fn add_media_type(
    content: &mut Map<String, MediaType>,
    content_type: impl ToString,
    media: MediaType
)

Adds the media to the given map. If the map already contains a MediaType with the given Content-Type, then it will be combined with media.