[−][src]Struct mail_core::EncData
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(&self) -> 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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for EncData
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<F, T> HeaderTryInto for F where
T: HeaderTryFrom<F>,
[src]
T: HeaderTryFrom<F>,