[][src]Enum melib::email::attachment_types::ContentType

pub enum ContentType {
    Text {
        kind: Text,
        parameters: Vec<(Vec<u8>, Vec<u8>)>,
        charset: Charset,
    },
    Multipart {
        boundary: Vec<u8>,
        kind: MultipartType,
        parts: Vec<Attachment>,
    },
    MessageRfc822,
    PGPSignature,
    CMSSignature,
    Other {
        tag: Vec<u8>,
        name: Option<String>,
    },
    OctetStream {
        name: Option<String>,
    },
}

Variants

Text

Fields of Text

kind: Textparameters: Vec<(Vec<u8>, Vec<u8>)>charset: Charset
Multipart

Fields of Multipart

boundary: Vec<u8>kind: MultipartTypeparts: Vec<Attachment>
MessageRfc822
PGPSignature
CMSSignature
Other

Fields of Other

tag: Vec<u8>name: Option<String>
OctetStream

Fields of OctetStream

name: Option<String>

Implementations

impl ContentType[src]

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

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

pub fn make_boundary(parts: &[AttachmentBuilder]) -> String[src]

pub fn name(&self) -> Option<&str>[src]

pub fn parts(&self) -> Option<&[Attachment]>[src]

Trait Implementations

impl Clone for ContentType[src]

impl Debug for ContentType[src]

impl Default for ContentType[src]

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

impl Display for ContentType[src]

impl Eq for ContentType[src]

impl<'_> PartialEq<&'_ str> for ContentType[src]

impl PartialEq<ContentType> for ContentType[src]

impl Serialize for ContentType[src]

impl StructuralEq for ContentType[src]

impl StructuralPartialEq for ContentType[src]

Auto Trait Implementations

impl RefUnwindSafe for ContentType

impl Send for ContentType

impl Sync for ContentType

impl Unpin for ContentType

impl UnwindSafe for ContentType

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]