[−][src]Struct mail::headers::ContentTransferEncoding
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
impl Clone for ContentTransferEncoding
[src]
fn clone(&self) -> ContentTransferEncoding
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ContentTransferEncoding
[src]
impl Default for ContentTransferEncoding
[src]
fn default() -> ContentTransferEncoding
[src]
impl HeaderKind for ContentTransferEncoding
[src]
type Component = TransferEncoding
the component representing the header-field, e.g. Unstructured
for Subject
fn name() -> HeaderName
[src]
const MAX_ONE: bool
[src]
const VALIDATOR: Option<fn(&HeaderMap) -> Result<(), HeaderValidationError>>
[src]
fn auto_body<H>(body: H) -> Result<Header<Self>, ComponentCreationError> where
H: HeaderTryInto<Self::Component>,
[src]
H: HeaderTryInto<Self::Component>,
fn body(body: Self::Component) -> Header<Self>
[src]
impl MaxOneMarker for ContentTransferEncoding
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContentTransferEncoding
impl Send for ContentTransferEncoding
impl Sync for ContentTransferEncoding
impl Unpin for ContentTransferEncoding
impl UnwindSafe for ContentTransferEncoding
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<H> HasHeaderName for H where
H: HeaderKind,
[src]
H: HeaderKind,
fn get_name(&self) -> HeaderName
[src]
impl<T> HeaderTryFrom<T> for T
[src]
fn try_from(val: T) -> Result<T, ComponentCreationError>
[src]
impl<F, T> HeaderTryInto<T> for F where
T: HeaderTryFrom<F>,
[src]
T: HeaderTryFrom<F>,
fn try_into(self) -> Result<T, ComponentCreationError>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,