[−][src]Struct lettre_email::PartBuilder
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]
fn eq(&self, other: &PartBuilder) -> bool
[src]
fn ne(&self, other: &PartBuilder) -> bool
[src]
impl Clone for PartBuilder
[src]
fn clone(&self) -> 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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,