pub struct Recipients(/* private fields */);Expand description
A validated recipient list.
Implementations§
Source§impl Recipients
impl Recipients
pub fn one<A>(recipient: A) -> Result<Self>
pub fn many<I>(recipients: I) -> Result<Self>where
I: IntoIterator<Item = EmailAddress>,
pub fn as_slice(&self) -> &[EmailAddress]
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 PartialEq for Recipients
impl PartialEq for Recipients
impl Eq 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 UnsafeUnpin 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