pub fn match_format( endpoint: &Endpoint, format: Option<impl Into<String>>, ) -> Result<Format>
Get the format from the string.