[][src]Struct melib::email::attachments::Attachment

pub struct Attachment {
    pub content_type: ContentType,
    pub content_transfer_encoding: ContentTransferEncoding,
    pub content_disposition: ContentDisposition,
    pub raw: Vec<u8>,
    pub body: StrBuilder,
}

Immutable attachment type.

Fields

content_type: ContentTypecontent_transfer_encoding: ContentTransferEncodingcontent_disposition: ContentDispositionraw: Vec<u8>body: StrBuilder

Implementations

impl Attachment[src]

pub fn new(
    content_type: ContentType,
    content_transfer_encoding: ContentTransferEncoding,
    raw: Vec<u8>
) -> Self
[src]

pub fn raw(&self) -> &[u8][src]

pub fn body(&self) -> &[u8][src]

pub fn part_boundaries(&self) -> Vec<StrBuilder>[src]

pub fn check_if_has_attachments_quick(bytes: &[u8], boundary: &[u8]) -> bool[src]

fn get_text_recursive(&self, text: &mut Vec<u8>)[src]

pub fn text(&self) -> String[src]

pub fn mime_type(&self) -> String[src]

pub fn attachments(&self) -> Vec<Attachment>[src]

pub fn count_attachments(&self) -> usize[src]

pub fn content_type(&self) -> &ContentType[src]

pub fn content_transfer_encoding(&self) -> &ContentTransferEncoding[src]

pub fn is_text(&self) -> bool[src]

pub fn is_html(&self) -> bool[src]

pub fn is_encrypted(&self) -> bool[src]

pub fn is_signed(&self) -> bool[src]

pub fn into_raw(&self) -> String[src]

pub fn parameters(&self) -> Vec<(&[u8], &[u8])>[src]

pub fn filename(&self) -> Option<String>[src]

Trait Implementations

impl Clone for Attachment[src]

impl Debug for Attachment[src]

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

impl Display for Attachment[src]

impl Eq for Attachment[src]

impl From<Attachment> for AttachmentBuilder[src]

impl From<AttachmentBuilder> for Attachment[src]

impl PartialEq<Attachment> for Attachment[src]

impl Serialize for Attachment[src]

impl StructuralEq for Attachment[src]

impl StructuralPartialEq for Attachment[src]

Auto Trait Implementations

impl RefUnwindSafe for Attachment

impl Send for Attachment

impl Sync for Attachment

impl Unpin for Attachment

impl UnwindSafe for Attachment

Blanket Implementations

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

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]