Enum beatrice::ContentType
source · [−]pub enum ContentType {
}
Variants
Css
Csv
EventStream
FormUrlEncoded
Gif
Html
JavaScript
Jpeg
Json
Markdown
MultipartForm
None
OctetStream
Pdf
PlainText
Png
Svg
Str(&'static str)
String(String)
Implementations
Trait Implementations
sourceimpl AsRef<str> for ContentType
impl AsRef<str> for ContentType
sourceimpl Clone for ContentType
impl Clone for ContentType
sourcefn clone(&self) -> ContentType
fn clone(&self) -> ContentType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ContentType
impl Debug for ContentType
sourceimpl From<ContentType> for String
impl From<ContentType> for String
sourcefn from(t: ContentType) -> Self
fn from(t: ContentType) -> Self
Converts to this type from the input type.
sourceimpl From<String> for ContentType
impl From<String> for ContentType
sourceimpl FromStr for ContentType
impl FromStr for ContentType
sourceimpl Hash for ContentType
impl Hash for ContentType
sourceimpl Ord for ContentType
impl Ord for ContentType
sourceimpl PartialEq<ContentType> for ContentType
impl PartialEq<ContentType> for ContentType
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ContentType) -> bool
fn ne(&self, other: &ContentType) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ContentType> for ContentType
impl PartialOrd<ContentType> for ContentType
sourcefn partial_cmp(&self, other: &ContentType) -> Option<Ordering>
fn partial_cmp(&self, other: &ContentType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more