Struct fire_http_representation::header::ContentType
source · [−]Expand description
Fields
mime: AnyMime
charset: Option<Charset>
Implementations
Creates a new ContentType
and automatically
adding a charset if the mime type is text.
Creates a new ContentType
with a charset
that does not get autmatically set by AnyMime::charset
.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more