[][src]Struct melib::email::compose::Draft

pub struct Draft {
    pub headers: HeaderMap,
    pub body: String,
    pub attachments: Vec<AttachmentBuilder>,
}

Fields

headers: HeaderMapbody: Stringattachments: Vec<AttachmentBuilder>

Implementations

impl Draft[src]

pub fn edit(envelope: &Envelope, bytes: &[u8]) -> Result<Self>[src]

pub fn set_header(&mut self, header: &str, value: String) -> &mut Self[src]

pub fn new_reply(envelope: &Envelope, bytes: &[u8], reply_to_all: bool) -> Self[src]

pub fn headers_mut(&mut self) -> &mut HeaderMap[src]

pub fn headers(&self) -> &HeaderMap[src]

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

pub fn attachments_mut(&mut self) -> &mut Vec<AttachmentBuilder>[src]

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

pub fn set_body(&mut self, s: String) -> &mut Self[src]

pub fn to_string(&self) -> Result<String>[src]

pub fn finalise(self) -> Result<String>[src]

Trait Implementations

impl Clone for Draft[src]

impl Debug for Draft[src]

impl Default for Draft[src]

impl Eq for Draft[src]

impl From<Mailto> for Draft[src]

impl FromStr for Draft[src]

type Err = MeliError

The associated error which can be returned from parsing.

impl PartialEq<Draft> for Draft[src]

impl StructuralEq for Draft[src]

impl StructuralPartialEq for Draft[src]

Auto Trait Implementations

impl RefUnwindSafe for Draft

impl Send for Draft

impl Sync for Draft

impl Unpin for Draft

impl UnwindSafe for Draft

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<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, 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]