pub enum MimeType {
Json,
Xml,
Text,
Other(String),
}
Expand description
MimeType (aka. ContentType)
Variants§
Json
Json (application/json)
Xml
Xml (application/xml | text/xml)
Text
Text (text/plain | text/*)
Other(String)
Other
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MimeType
impl RefUnwindSafe for MimeType
impl Send for MimeType
impl Sync for MimeType
impl Unpin for MimeType
impl UnwindSafe for MimeType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more