pub enum MediaType {
Json,
Xml,
UrlEncodedForm,
Other(String),
}
Variants
Json
Json media types are deserialized and compared
Xml
XML media types are normalized and compared
UrlEncodedForm
For x-www-form-urlencoded, do some map order comparison shenanigans
Other(String)
Other media types are compared literally
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MediaType
impl Send for MediaType
impl Sync for MediaType
impl Unpin for MediaType
impl UnwindSafe for MediaType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more