pub struct MailFromPath(/* private fields */);Expand description
MAIL FROM path wrapper.
Implementations§
Source§impl MailFromPath
impl MailFromPath
Sourcepub fn new(
value: impl AsRef<str>,
) -> Result<MailFromPath, AddressValidationError>
pub fn new( value: impl AsRef<str>, ) -> Result<MailFromPath, AddressValidationError>
Creates a MAIL FROM path from address text.
Sourcepub const fn null() -> MailFromPath
pub const fn null() -> MailFromPath
Creates a null MAIL FROM path.
Sourcepub const fn reverse_path(&self) -> &ReversePath
pub const fn reverse_path(&self) -> &ReversePath
Returns the reverse-path.
Trait Implementations§
Source§impl Clone for MailFromPath
impl Clone for MailFromPath
Source§fn clone(&self) -> MailFromPath
fn clone(&self) -> MailFromPath
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 MailFromPath
impl Debug for MailFromPath
Source§impl Display for MailFromPath
impl Display for MailFromPath
Source§impl Hash for MailFromPath
impl Hash for MailFromPath
Source§impl Ord for MailFromPath
impl Ord for MailFromPath
Source§fn cmp(&self, other: &MailFromPath) -> Ordering
fn cmp(&self, other: &MailFromPath) -> Ordering
1.21.0 (const: unstable) · 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
Source§impl PartialEq for MailFromPath
impl PartialEq for MailFromPath
Source§fn eq(&self, other: &MailFromPath) -> bool
fn eq(&self, other: &MailFromPath) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MailFromPath
impl PartialOrd for MailFromPath
impl Eq for MailFromPath
impl StructuralPartialEq for MailFromPath
Auto Trait Implementations§
impl Freeze for MailFromPath
impl RefUnwindSafe for MailFromPath
impl Send for MailFromPath
impl Sync for MailFromPath
impl Unpin for MailFromPath
impl UnsafeUnpin for MailFromPath
impl UnwindSafe for MailFromPath
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