pub struct Recipients {
pub to: Option<Vec<EmailAddress>>,
pub cc: Option<Vec<EmailAddress>>,
pub bcc: Option<Vec<EmailAddress>>,
}Expand description
Recipients list
Fields§
§to: Option<Vec<EmailAddress>>To recipients
cc: Option<Vec<EmailAddress>>CC recipients
bcc: Option<Vec<EmailAddress>>BCC recipients
Implementations§
Source§impl Recipients
impl Recipients
Sourcepub fn new(addresses: Vec<EmailAddress>) -> Self
pub fn new(addresses: Vec<EmailAddress>) -> Self
Create recipients list with To recipients (alias for to)
Sourcepub fn to(addresses: Vec<EmailAddress>) -> Self
pub fn to(addresses: Vec<EmailAddress>) -> Self
Create recipients list with only To recipients
Sourcepub fn cc(addresses: Vec<EmailAddress>) -> Self
pub fn cc(addresses: Vec<EmailAddress>) -> Self
Create recipients list with only CC recipients
Sourcepub fn bcc(addresses: Vec<EmailAddress>) -> Self
pub fn bcc(addresses: Vec<EmailAddress>) -> Self
Create recipients list with only BCC recipients
Sourcepub fn add_to(self, addresses: Vec<EmailAddress>) -> Self
pub fn add_to(self, addresses: Vec<EmailAddress>) -> Self
Add To recipients to existing Recipients
Sourcepub fn add_cc(self, addresses: Vec<EmailAddress>) -> Self
pub fn add_cc(self, addresses: Vec<EmailAddress>) -> Self
Add CC recipients to existing Recipients
Sourcepub fn add_bcc(self, addresses: Vec<EmailAddress>) -> Self
pub fn add_bcc(self, addresses: Vec<EmailAddress>) -> Self
Add BCC recipients to existing Recipients
Sourcepub fn builder() -> RecipientsBuilder
pub fn builder() -> RecipientsBuilder
Create a new builder for Recipients
Trait Implementations§
Source§impl Clone for Recipients
impl Clone for Recipients
Source§fn clone(&self) -> Recipients
fn clone(&self) -> Recipients
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Recipients
impl Debug for Recipients
Source§impl<'de> Deserialize<'de> for Recipients
impl<'de> Deserialize<'de> for Recipients
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Recipients
impl PartialEq for Recipients
Source§impl Serialize for Recipients
impl Serialize for Recipients
impl StructuralPartialEq for Recipients
Auto Trait Implementations§
impl Freeze for Recipients
impl RefUnwindSafe for Recipients
impl Send for Recipients
impl Sync for Recipients
impl Unpin for Recipients
impl UnwindSafe for Recipients
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more