pub enum AddressPart {
All,
Localpart,
Domain,
}Expand description
Which portion of an address an envelope test
compares (RFC 5228 §5.1 :all / :localpart / :domain).
Variants§
All
The whole address (default in RFC 5228).
Localpart
Everything before the last @ (the whole value when there is no @).
Domain
Everything after the last @ (empty when there is no @).
Trait Implementations§
Source§impl Clone for AddressPart
impl Clone for AddressPart
Source§fn clone(&self) -> AddressPart
fn clone(&self) -> AddressPart
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 moreimpl Copy for AddressPart
Source§impl Debug for AddressPart
impl Debug for AddressPart
Source§impl<'de> Deserialize<'de> for AddressPart
impl<'de> Deserialize<'de> for AddressPart
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 AddressPart
Source§impl PartialEq for AddressPart
impl PartialEq for AddressPart
Source§impl Serialize for AddressPart
impl Serialize for AddressPart
impl StructuralPartialEq for AddressPart
Auto Trait Implementations§
impl Freeze for AddressPart
impl RefUnwindSafe for AddressPart
impl Send for AddressPart
impl Sync for AddressPart
impl Unpin for AddressPart
impl UnsafeUnpin for AddressPart
impl UnwindSafe for AddressPart
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