pub struct AddressGroup { /* private fields */ }Expand description
A named group of visible mailboxes.
Implementations§
Source§impl AddressGroup
impl AddressGroup
Sourcepub fn new(
name: impl AsRef<str>,
members: MailboxList,
) -> Result<AddressGroup, AddressValidationError>
pub fn new( name: impl AsRef<str>, members: MailboxList, ) -> Result<AddressGroup, AddressValidationError>
Creates an address group.
Sourcepub const fn name(&self) -> &DisplayName
pub const fn name(&self) -> &DisplayName
Returns the group name.
Sourcepub const fn members(&self) -> &MailboxList
pub const fn members(&self) -> &MailboxList
Returns the group members.
Trait Implementations§
Source§impl Clone for AddressGroup
impl Clone for AddressGroup
Source§fn clone(&self) -> AddressGroup
fn clone(&self) -> AddressGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AddressGroup
impl Debug for AddressGroup
Source§impl Display for AddressGroup
impl Display for AddressGroup
Source§impl PartialEq for AddressGroup
impl PartialEq for AddressGroup
Source§fn eq(&self, other: &AddressGroup) -> bool
fn eq(&self, other: &AddressGroup) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AddressGroup
impl StructuralPartialEq for AddressGroup
Auto Trait Implementations§
impl Freeze for AddressGroup
impl RefUnwindSafe for AddressGroup
impl Send for AddressGroup
impl Sync for AddressGroup
impl Unpin for AddressGroup
impl UnsafeUnpin for AddressGroup
impl UnwindSafe for AddressGroup
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