Struct ForwardPath
pub struct ForwardPath(/* private fields */);Expand description
SMTP forward-path.
Implementations§
§impl ForwardPath
impl ForwardPath
pub fn new(
value: impl AsRef<str>,
) -> Result<ForwardPath, AddressValidationError>
pub fn new( value: impl AsRef<str>, ) -> Result<ForwardPath, AddressValidationError>
Creates a forward-path from address text.
pub const fn from_address(address: EnvelopeAddress) -> ForwardPath
pub const fn from_address(address: EnvelopeAddress) -> ForwardPath
Creates a forward-path from a validated envelope address.
pub const fn address(&self) -> &EnvelopeAddress
pub const fn address(&self) -> &EnvelopeAddress
Returns the envelope address.
Trait Implementations§
§impl Clone for ForwardPath
impl Clone for ForwardPath
§fn clone(&self) -> ForwardPath
fn clone(&self) -> ForwardPath
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 ForwardPath
impl Debug for ForwardPath
§impl Display for ForwardPath
impl Display for ForwardPath
§impl Hash for ForwardPath
impl Hash for ForwardPath
§impl Ord for ForwardPath
impl Ord for ForwardPath
§impl PartialEq for ForwardPath
impl PartialEq for ForwardPath
§impl PartialOrd for ForwardPath
impl PartialOrd for ForwardPath
impl Eq for ForwardPath
impl StructuralPartialEq for ForwardPath
Auto Trait Implementations§
impl Freeze for ForwardPath
impl RefUnwindSafe for ForwardPath
impl Send for ForwardPath
impl Sync for ForwardPath
impl Unpin for ForwardPath
impl UnsafeUnpin for ForwardPath
impl UnwindSafe for ForwardPath
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