Struct MailFromPath
pub struct MailFromPath(/* private fields */);Expand description
MAIL FROM path wrapper.
Implementations§
§impl MailFromPath
impl MailFromPath
pub 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.
pub const fn null() -> MailFromPath
pub const fn null() -> MailFromPath
Creates a null MAIL FROM path.
pub const fn reverse_path(&self) -> &ReversePath
pub const fn reverse_path(&self) -> &ReversePath
Returns the reverse-path.
Trait Implementations§
§impl Clone for MailFromPath
impl Clone for MailFromPath
§fn clone(&self) -> MailFromPath
fn clone(&self) -> MailFromPath
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 MailFromPath
impl Debug for MailFromPath
§impl Display for MailFromPath
impl Display for MailFromPath
§impl Hash for MailFromPath
impl Hash for MailFromPath
§impl Ord for MailFromPath
impl Ord for MailFromPath
§impl PartialEq for MailFromPath
impl PartialEq for MailFromPath
§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