pub fn pick_consumes(consumes: Vec<&str>) -> Option<&str> {
    if consumes.contains(&APPLICATION_JSON) {
        return Some(APPLICATION_JSON);
    }
    consumes.into_iter().next()
}
/// Pick `application/json` if it is an option, else the first one in the list
Pick `application/json` if it is an option, else the first one in the list
Pick ` application / json ` if it is an option else the first one in the list
pub fn pick_consumes(consumes: Vec<&str>) -> Option<&str> {
    if consumes.contains(&APPLICATION_JSON) {
        return Some(APPLICATION_JSON);
    }
    consumes.into_iter().next()
}
pub fn pick_consumes ( consumes : Vec < & str > ) -> Option < & str > { if consumes . contains ( & APPLICATION_JSON ) { return Some ( APPLICATION_JSON ) ; } consumes . into_iter ( ) . next ( ) }
Pick `application/json` if it is an option, else the first one in the list
Pick ` application / json ` if it is an option else the first one in the list
consumes
Vec<&str>