Struct new_tokio_smtp::ForwardPath [−][src]
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.
Methods
impl ForwardPath
[src]
impl ForwardPath
pub fn as_str(&self) -> &str
[src]
pub fn as_str(&self) -> &str
return the inner representation as &str
pub fn from_unchecked<I>(data: I) -> Self where
I: Into<String>,
[src]
pub fn from_unchecked<I>(data: I) -> Self where
I: Into<String>,
create a new instance from a string without validating the input
Trait Implementations
impl Debug for ForwardPath
[src]
impl Debug for ForwardPath
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ForwardPath
[src]
impl Clone for ForwardPath
fn clone(&self) -> ForwardPath
[src]
fn clone(&self) -> ForwardPath
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Eq for ForwardPath
[src]
impl Eq for ForwardPath
impl PartialEq for ForwardPath
[src]
impl PartialEq for ForwardPath
fn eq(&self, other: &ForwardPath) -> bool
[src]
fn eq(&self, other: &ForwardPath) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ForwardPath) -> bool
[src]
fn ne(&self, other: &ForwardPath) -> bool
This method tests for !=
.
impl Hash for ForwardPath
[src]
impl Hash for ForwardPath
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl AsRef<str> for ForwardPath
[src]
impl AsRef<str> for ForwardPath
impl Into<String> for ForwardPath
[src]
impl Into<String> for ForwardPath
impl PartialEq<str> for ForwardPath
[src]
impl PartialEq<str> for ForwardPath
fn eq(&self, other: &str) -> bool
[src]
fn eq(&self, other: &str) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> PartialEq<&'a str> for ForwardPath
[src]
impl<'a> PartialEq<&'a str> for ForwardPath
fn eq(&self, other: &&'a str) -> bool
[src]
fn eq(&self, other: &&'a str) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<String> for ForwardPath
[src]
impl PartialEq<String> for ForwardPath
fn eq(&self, other: &String) -> bool
[src]
fn eq(&self, other: &String) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl From<MailAddress> for ForwardPath
[src]
impl From<MailAddress> for ForwardPath
fn from(addr: MailAddress) -> ForwardPath
[src]
fn from(addr: MailAddress) -> ForwardPath
Performs the conversion.
Auto Trait Implementations
impl Send for ForwardPath
impl Send for ForwardPath
impl Sync for ForwardPath
impl Sync for ForwardPath