Enum email::mimeheaders::MimeContentTransferEncoding
[−]
[src]
pub enum MimeContentTransferEncoding { Identity, QuotedPrintable, Base64, }
Special header type for the Content-Transfer-Encoding header.
Variants
Identity
Message content is not encoded in any way.
QuotedPrintable
Content transfered using the quoted-printable encoding.
This encoding is defined in RFC 2045 Section 6.7
Base64
Content transfered as BASE64
This encoding is defined in RFC 2045 Section 6.8
Methods
impl MimeContentTransferEncoding
[src]
fn decode(&self, input: &String) -> Option<Vec<u8>>
[src]
Decode the input string with this transfer encoding.
Note that this will return a clone of the input's bytes if the transfer encoding is the Identity encoding. [unstable]
Trait Implementations
impl Debug for MimeContentTransferEncoding
[src]
impl PartialEq for MimeContentTransferEncoding
[src]
fn eq(&self, __arg_0: &MimeContentTransferEncoding) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for MimeContentTransferEncoding
[src]
impl Clone for MimeContentTransferEncoding
[src]
fn clone(&self) -> MimeContentTransferEncoding
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for MimeContentTransferEncoding
[src]
impl FromHeader for MimeContentTransferEncoding
[src]
fn from_header(value: String) -> ParsingResult<MimeContentTransferEncoding>
[src]
Parse the value
of the header. Read more