Struct mail_headers::headers::ContentTransferEncoding
source · pub struct ContentTransferEncoding;
Expand description
The transfer encoding used to (transfer) encode the body (rfc2045)
This should either be:
7bit
: Us-ascii only text, default value if header filed is not presentquoted-printable
: Data encoded with quoted-printable encoding).base64
: Data encoded with base64 encoding.
Through other defined values include:
-
8bit
: Data which is not encoded but still considers lines and line length, i.e. has no more then 998 bytes between two CRLF (or the start/end of data). Bodies of this kind can still be send if the server supports the 8bit mime extension. -
binary
: Data which is not encoded and can be any kind of arbitrary binary data. To send binary bodies theCHUNKING
smpt extension (rfc3030) needs to be supported using BDATA instead of DATA to send the content. Note that the extension does not fix the potential but rare problem of accendentall multipart boundary collisions.
Nevertheless this encodings are mainly meant to be used for defining the domain of data in a system before it is encoded.
Trait Implementations
sourceimpl Clone for ContentTransferEncoding
impl Clone for ContentTransferEncoding
sourcefn clone(&self) -> ContentTransferEncoding
fn clone(&self) -> ContentTransferEncoding
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Default for ContentTransferEncoding
impl Default for ContentTransferEncoding
sourcefn default() -> ContentTransferEncoding
fn default() -> ContentTransferEncoding
sourceimpl HeaderKind for ContentTransferEncoding
impl HeaderKind for ContentTransferEncoding
type Component = TransferEncoding
type Component = TransferEncoding
Unstructured
for Subject
sourcefn name() -> HeaderName
fn name() -> HeaderName
sourceconst MAX_ONE: bool = true
const MAX_ONE: bool = true
sourceconst VALIDATOR: Option<HeaderMapValidator> = { None }
const VALIDATOR: Option<HeaderMapValidator> = { None }
From
header might return a function which
checks if the From
header has multiple mailboxes and
if so checks if there is a Sender
header Read moresourcefn auto_body<H>(body: H) -> Result<Header<Self>, ComponentCreationError>where
H: HeaderTryInto<Self::Component>,
fn auto_body<H>(body: H) -> Result<Header<Self>, ComponentCreationError>where
H: HeaderTryInto<Self::Component>,
Header
instance automatically converting given body to the right type. Read more