[][src]Struct mail_core::EncData

pub struct EncData { /* fields omitted */ }

EncData is like Data but the buffer contains transfer encoded data.

Clone

Data is made to be cheap to clone and share. For this it uses Arc internally.

Methods

impl EncData[src]

pub fn transfer_encoded_buffer(&self) -> &Arc<[u8]>[src]

Access the raw transfer encoded data.

pub fn metadata(&self) -> &Arc<Metadata>[src]

Access the metadata.

pub fn file_meta(&self) -> &FileMeta[src]

Access the file meta metadata.Fn

pub fn media_type(&self) -> &MediaType[src]

Access the content type.

pub fn encoding(&self) -> TransferEncoding[src]

Access the transfer encoding used to encode the buffer.

pub fn content_id(&self) -> &ContentId[src]

Access the content id.

The content id is for the data itself so it should not change just because the data had been transfer encoded.

Note about fixed newlines:

The encoding functions of this library will always "fix" line endings even if the transfer encoding is to not have any encoding, it could be said that this is a modification of the data and as such the content id should change. But as this is done always and as such only the transfer encoded data is "send" out this works out fine.

Trait Implementations

impl Clone for EncData[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for EncData[src]

impl Serialize for EncData[src]

impl<'de> Deserialize<'de> for EncData[src]

Auto Trait Implementations

impl Send for EncData

impl Sync for EncData

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<F, T> HeaderTryInto for F where
    T: HeaderTryFrom<F>, 
[src]

impl<T> HeaderTryFrom for T[src]

impl<T> Erased for T