Enum mail_parser::Address [−][src]
pub enum Address<'x> {
Address(Addr<'x>),
AddressList(Vec<Addr<'x>>),
Group(Group<'x>),
GroupList(Vec<Group<'x>>),
Collection(Vec<Address<'x>>),
Empty,
}
Expand description
An RFC5322 or RFC2369 address field.
Variants
Address(Addr<'x>)
A single address
Tuple Fields of Address
0: Addr<'x>
An address list
Group(Group<'x>)
A group of addresses
Tuple Fields of Group
0: Group<'x>
A list containing two or more groups
A collection of address fields, used for header fields that might be present more than once in a message, for example Resent-To
Implementations
Trait Implementations
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