pub enum ContentTypes {
JSON,
HTML,
Text,
Png,
MP3,
Any,
OctetStream,
}Expand description
ContentTypes
§https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types
Variants§
JSON
application/json
HTML
text/html
Text
text/plain
Png
image/png
MP3
audio/mp3
Any
text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
OctetStream
application/octet-stream
Implementations§
Trait Implementations§
Source§impl Clone for ContentTypes
impl Clone for ContentTypes
Source§fn clone(&self) -> ContentTypes
fn clone(&self) -> ContentTypes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentTypes
impl Debug for ContentTypes
Auto Trait Implementations§
impl Freeze for ContentTypes
impl RefUnwindSafe for ContentTypes
impl Send for ContentTypes
impl Sync for ContentTypes
impl Unpin for ContentTypes
impl UnwindSafe for ContentTypes
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