Struct lettre::EnvelopeBuilder
[−]
[src]
pub struct EnvelopeBuilder { /* fields omitted */ }
Simple email envelope representation
Methods
impl EnvelopeBuilder
[src]
pub fn new() -> Self
[src]
Constructs an envelope with no recipients and an empty sender
pub fn to<S: Into<EmailAddress>>(self, address: S) -> Self
[src]
Adds a recipient
pub fn add_to<S: Into<EmailAddress>>(&mut self, address: S)
[src]
Adds a recipient
pub fn from<S: Into<EmailAddress>>(self, address: S) -> Self
[src]
Sets the sender
pub fn set_from<S: Into<EmailAddress>>(&mut self, address: S)
[src]
Sets the sender
pub fn build(self) -> EmailResult<Envelope>
[src]
Build the envelope
Trait Implementations
impl PartialEq for EnvelopeBuilder
[src]
fn eq(&self, __arg_0: &EnvelopeBuilder) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EnvelopeBuilder) -> bool
[src]
This method tests for !=
.
impl Eq for EnvelopeBuilder
[src]
impl Clone for EnvelopeBuilder
[src]
fn clone(&self) -> EnvelopeBuilder
[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 EnvelopeBuilder
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for EnvelopeBuilder
[src]
fn default() -> EnvelopeBuilder
[src]
Returns the "default value" for a type. Read more