pub enum ContentType {
Show 15 variants
Text,
Html,
Css,
Js,
Json,
Xml,
Png,
Jpeg,
Svg,
Icon,
FontTtf,
FontOtf,
FontWoff,
FontWoff2,
Unknown,
}
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ContentType
impl Clone for ContentType
Source§fn clone(&self) -> ContentType
fn clone(&self) -> ContentType
Returns a copy 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 Into<HeaderValue> for ContentType
impl Into<HeaderValue> for ContentType
Source§fn into(self) -> HeaderValue
fn into(self) -> HeaderValue
Converts this type into the (usually inferred) input type.
impl Copy for ContentType
Auto Trait Implementations§
impl Freeze for ContentType
impl RefUnwindSafe for ContentType
impl Send for ContentType
impl Sync for ContentType
impl Unpin for ContentType
impl UnwindSafe for ContentType
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