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