Function rocket_okapi::util::add_media_type
source · [−]pub fn add_media_type(
content: &mut Map<String, MediaType>,
content_type: impl ToString,
media: MediaType
)
Expand description
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
.