#[non_exhaustive]pub struct EmailAddressGroup {
pub name: Option<String>,
pub addresses: Vec<EmailAddress>,
pub extra: Map<String, Value>,
}Expand description
A named group of email addresses (RFC 8621 §4.1.2.4).
Preserves RFC 5322 group structure. Consecutive mailboxes not part of
a named group are collected under an EmailAddressGroup with name: null.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>The decoded display-name of the group, or null for ungrouped mailboxes.
addresses: Vec<EmailAddress>The mailboxes that belong to this group.
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).
Implementations§
Source§impl EmailAddressGroup
impl EmailAddressGroup
Sourcepub fn new(addresses: Vec<EmailAddress>) -> Self
pub fn new(addresses: Vec<EmailAddress>) -> Self
Construct an EmailAddressGroup with no group name.
Trait Implementations§
Source§impl Clone for EmailAddressGroup
impl Clone for EmailAddressGroup
Source§fn clone(&self) -> EmailAddressGroup
fn clone(&self) -> EmailAddressGroup
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 EmailAddressGroup
impl Debug for EmailAddressGroup
Source§impl<'de> Deserialize<'de> for EmailAddressGroup
impl<'de> Deserialize<'de> for EmailAddressGroup
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
impl Eq for EmailAddressGroup
Source§impl PartialEq for EmailAddressGroup
impl PartialEq for EmailAddressGroup
Source§fn eq(&self, other: &EmailAddressGroup) -> bool
fn eq(&self, other: &EmailAddressGroup) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EmailAddressGroup
impl Serialize for EmailAddressGroup
impl StructuralPartialEq for EmailAddressGroup
Auto Trait Implementations§
impl Freeze for EmailAddressGroup
impl RefUnwindSafe for EmailAddressGroup
impl Send for EmailAddressGroup
impl Sync for EmailAddressGroup
impl Unpin for EmailAddressGroup
impl UnsafeUnpin for EmailAddressGroup
impl UnwindSafe for EmailAddressGroup
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