[][src]Struct lettre_email::PartBuilder

pub struct PartBuilder { /* fields omitted */ }

Builds a MimeMessage structure

Methods

impl PartBuilder[src]

pub fn new() -> PartBuilder[src]

Creates a new empty part

pub fn header<A: Into<Header>>(self, header: A) -> PartBuilder[src]

Adds a generic header

pub fn body<S: Into<String>>(self, body: S) -> PartBuilder[src]

Sets the body

pub fn message_type(self, mime_type: MimeMultipartType) -> PartBuilder[src]

Defines a MimeMultipartType value

pub fn content_type(self, content_type: &Mime) -> PartBuilder[src]

Adds a ContentType header with the given MIME type

pub fn child(self, child: MimeMessage) -> PartBuilder[src]

Adds a child part

pub fn build(self) -> MimeMessage[src]

Gets built MimeMessage

Trait Implementations

impl Eq for PartBuilder[src]

impl PartialEq<PartBuilder> for PartBuilder[src]

impl Clone for PartBuilder[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for PartBuilder[src]

impl Debug for PartBuilder[src]

Auto Trait Implementations

impl Send for PartBuilder

impl Sync for PartBuilder

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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