[][src]Struct new_tokio_smtp::ForwardPath

pub struct ForwardPath(_);

represents a forward path, most times this is just a mail address

Note that this type is not supposed to contain the surrounding '<' and '>'. They will be added automatically.

Note that currently no parser is implemented and that the allowed grammar of the forward path changes depending on the EsmtKeywords in EHLO and on the parameters of the previously send MAIL command. This and the fact that part of the grammar of forward paths are discouraged to be used makes it a bit of a wast of time to implement the grammar here. Through send_mail actually does know about SMTPUTF8 and keeps track of it.

Implementations

impl ForwardPath[src]

pub fn as_str(&self) -> &str[src]

return the inner representation as &str

pub fn from_unchecked<I>(data: I) -> Self where
    I: Into<String>, 
[src]

create a new instance from a string without validating the input

Trait Implementations

impl AsRef<str> for ForwardPath[src]

impl Clone for ForwardPath[src]

impl Debug for ForwardPath[src]

impl Eq for ForwardPath[src]

impl From<MailAddress> for ForwardPath[src]

impl Hash for ForwardPath[src]

impl Into<String> for ForwardPath[src]

impl<'a> PartialEq<&'a str> for ForwardPath[src]

impl PartialEq<ForwardPath> for ForwardPath[src]

impl PartialEq<String> for ForwardPath[src]

impl PartialEq<str> for ForwardPath[src]

impl StructuralEq for ForwardPath[src]

impl StructuralPartialEq for ForwardPath[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.