Struct lettre_email::PartBuilder
[−]
[src]
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: IntoHeader>(self, header: A) -> PartBuilder
[src]
Adds a generic header
pub fn add_header<A: IntoHeader>(&mut self, header: A)
[src]
Adds a generic header
pub fn body<S: Into<String>>(self, body: S) -> PartBuilder
[src]
Sets the body
pub fn set_body<S: Into<String>>(&mut self, body: S)
[src]
Sets the body
pub fn message_type(self, mime_type: MimeMultipartType) -> PartBuilder
[src]
Defines a MimeMultipartType
value
pub fn set_message_type(&mut self, mime_type: MimeMultipartType)
[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 set_content_type(&mut self, content_type: &Mime)
[src]
Adds a ContentType
header with the given MIME type
pub fn child(self, child: MimeMessage) -> PartBuilder
[src]
Adds a child part
pub fn add_child(&mut self, child: MimeMessage)
[src]
Adds a child part
pub fn build(self) -> MimeMessage
[src]
Gets builded MimeMessage
Trait Implementations
impl PartialEq for PartBuilder
[src]
fn eq(&self, __arg_0: &PartBuilder) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PartBuilder) -> bool
[src]
This method tests for !=
.
impl Eq for PartBuilder
[src]
impl Clone for PartBuilder
[src]
fn clone(&self) -> PartBuilder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for PartBuilder
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more