Struct mail::EncData

source ·
pub struct EncData { /* private fields */ }
Expand description

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.

Implementations§

Access the raw transfer encoded data.

Access the metadata.

Access the file meta metadata.Fn

Access the content type.

Access the transfer encoding used to encode the buffer.

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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.