Enum ReversePath
pub enum ReversePath {
Null,
Address(EnvelopeAddress),
}Expand description
SMTP reverse-path, including the null reverse-path.
Variants§
Implementations§
§impl ReversePath
impl ReversePath
pub fn new(
value: impl AsRef<str>,
) -> Result<ReversePath, AddressValidationError>
pub fn new( value: impl AsRef<str>, ) -> Result<ReversePath, AddressValidationError>
Creates an address reverse-path.
pub const fn null() -> ReversePath
pub const fn null() -> ReversePath
Creates a null reverse-path.
Trait Implementations§
§impl Clone for ReversePath
impl Clone for ReversePath
§fn clone(&self) -> ReversePath
fn clone(&self) -> ReversePath
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 ReversePath
impl Debug for ReversePath
§impl Display for ReversePath
impl Display for ReversePath
§impl Hash for ReversePath
impl Hash for ReversePath
§impl Ord for ReversePath
impl Ord for ReversePath
§impl PartialEq for ReversePath
impl PartialEq for ReversePath
§impl PartialOrd for ReversePath
impl PartialOrd for ReversePath
impl Eq for ReversePath
impl StructuralPartialEq for ReversePath
Auto Trait Implementations§
impl Freeze for ReversePath
impl RefUnwindSafe for ReversePath
impl Send for ReversePath
impl Sync for ReversePath
impl Unpin for ReversePath
impl UnsafeUnpin for ReversePath
impl UnwindSafe for ReversePath
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