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§
source§impl<'a> PartialEq<Content<'a>> for Content<'a>
impl<'a> PartialEq<Content<'a>> for Content<'a>
impl<'a> Eq for Content<'a>
impl<'a> StructuralEq for Content<'a>
impl<'a> StructuralPartialEq for Content<'a>
Auto Trait Implementations§
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> 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