pub enum Content<'a> {
HTML,
TXT,
CSV,
JSON,
XML,
Custom(&'a str),
}Expand description
Common MIME types.
Variantsยง
HTML
HTML - text/html
TXT
TXT - text/plain
CSV
CSV - text/csv
JSON
JSON - application/json
XML
XML - application/xml
Custom(&'a str)
Custom Content Type
Implementationsยง
Trait Implementationsยง
impl<'a> Eq for Content<'a>
impl<'a> StructuralPartialEq for Content<'a>
Auto Trait Implementationsยง
impl<'a> Freeze for Content<'a>
impl<'a> RefUnwindSafe for Content<'a>
impl<'a> Send for Content<'a>
impl<'a> Sync for Content<'a>
impl<'a> Unpin for Content<'a>
impl<'a> UnsafeUnpin for Content<'a>
impl<'a> UnwindSafe for Content<'a>
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