pub enum ContentType {
None,
Known(Mime),
Unknown(String),
}
Expand description
Http ContentType
header.
Variants§
Implementations§
Source§impl ContentType
impl ContentType
Trait Implementations§
Source§impl Clone for ContentType
impl Clone for ContentType
Source§fn clone(&self) -> ContentType
fn clone(&self) -> ContentType
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 ContentType
impl Debug for ContentType
Source§impl Display for ContentType
impl Display for ContentType
Source§impl<'a> From<&'a str> for ContentType
impl<'a> From<&'a str> for ContentType
Source§impl From<()> for ContentType
impl From<()> for ContentType
Source§impl From<Mime> for ContentType
impl From<Mime> for ContentType
Source§impl From<String> for ContentType
impl From<String> for ContentType
Source§impl PartialEq for ContentType
impl PartialEq for ContentType
Source§impl TryFrom<ContentType> for HeaderValue
impl TryFrom<ContentType> for HeaderValue
Source§type Error = InvalidHeaderValue
type Error = InvalidHeaderValue
The type returned in the event of a conversion error.
impl Eq for ContentType
impl StructuralPartialEq 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