Struct lettre::message::header::ContentType [−][src]
pub struct ContentType(_);
builder
only.Expand description
Content-Type
of the body
This struct can represent any valid mime type, which can be parsed via
ContentType::parse
. Constants are provided for the most-used mime-types.
Defined in RFC2045
Implementations
A ContentType
of type text/plain; charset=utf-8
Indicates that the body is in utf-8 encoded plain text.
A ContentType
of type text/html; charset=utf-8
Indicates that the body is in utf-8 encoded html.
Parse s
into ContentType
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
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
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more