Enum servlin::internal::ContentType
source · pub enum ContentType {
}
Variants§
Css
Csv
EventStream
FormUrlEncoded
Gif
Html
JavaScript
Jpeg
Json
Markdown
MultipartForm
None
OctetStream
PlainText
Png
Svg
Str(&'static str)
String(String)
Implementations§
Trait Implementations§
source§impl AsRef<str> for ContentType
impl AsRef<str> for ContentType
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 Debug for ContentType
impl Debug for ContentType
source§impl From<ContentType> for String
impl From<ContentType> for String
source§fn from(t: ContentType) -> Self
fn from(t: ContentType) -> Self
Converts to this type from the input type.
source§impl From<String> for ContentType
impl From<String> for ContentType
source§impl FromStr for ContentType
impl FromStr for ContentType
source§impl Hash for ContentType
impl Hash for ContentType
source§impl Ord for ContentType
impl Ord for ContentType
source§fn cmp(&self, other: &ContentType) -> Ordering
fn cmp(&self, other: &ContentType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ContentType
impl PartialEq for ContentType
source§fn eq(&self, other: &ContentType) -> bool
fn eq(&self, other: &ContentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ContentType
impl PartialOrd for ContentType
source§fn partial_cmp(&self, other: &ContentType) -> Option<Ordering>
fn partial_cmp(&self, other: &ContentType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ContentType
impl StructuralEq for ContentType
impl StructuralPartialEq for ContentType
Auto Trait Implementations§
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