Struct EnvelopeRecipient
pub struct EnvelopeRecipient(/* private fields */);Expand description
Envelope recipient path.
Implementations§
§impl EnvelopeRecipient
impl EnvelopeRecipient
pub fn new(
value: impl AsRef<str>,
) -> Result<EnvelopeRecipient, AddressValidationError>
pub fn new( value: impl AsRef<str>, ) -> Result<EnvelopeRecipient, AddressValidationError>
Creates an envelope recipient from address text.
pub fn from_email_address(address: EmailAddress) -> EnvelopeRecipient
pub fn from_email_address(address: EmailAddress) -> EnvelopeRecipient
Creates an envelope recipient from a validated address.
pub const fn path(&self) -> &RcptToPath
pub const fn path(&self) -> &RcptToPath
Returns the RCPT TO path.
Trait Implementations§
§impl Clone for EnvelopeRecipient
impl Clone for EnvelopeRecipient
§fn clone(&self) -> EnvelopeRecipient
fn clone(&self) -> EnvelopeRecipient
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 more§impl Debug for EnvelopeRecipient
impl Debug for EnvelopeRecipient
§impl Display for EnvelopeRecipient
impl Display for EnvelopeRecipient
§impl Hash for EnvelopeRecipient
impl Hash for EnvelopeRecipient
§impl Ord for EnvelopeRecipient
impl Ord for EnvelopeRecipient
§fn cmp(&self, other: &EnvelopeRecipient) -> Ordering
fn cmp(&self, other: &EnvelopeRecipient) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for EnvelopeRecipient
impl PartialEq for EnvelopeRecipient
§impl PartialOrd for EnvelopeRecipient
impl PartialOrd for EnvelopeRecipient
impl Eq for EnvelopeRecipient
impl StructuralPartialEq for EnvelopeRecipient
Auto Trait Implementations§
impl Freeze for EnvelopeRecipient
impl RefUnwindSafe for EnvelopeRecipient
impl Send for EnvelopeRecipient
impl Sync for EnvelopeRecipient
impl Unpin for EnvelopeRecipient
impl UnsafeUnpin for EnvelopeRecipient
impl UnwindSafe for EnvelopeRecipient
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