[−][src]Struct mail_smtp::misc::Domain
represents a Domain
Note that currently no parse is implemented for Domain
,
i.e. validation has to be done by the user converting their
representation to out using from_unchecked
.
Note that the domain is expected to be ascii non ascii strings should be puny encoded.
Implementations
impl Domain
[src]
pub fn new_unchecked(domain: String) -> Domain
[src]
creates a new domain without validating it's correctness
impl Domain
[src]
pub fn as_str(&self) -> &str
[src]
return the inner representation as &str
pub fn from_unchecked<I>(data: I) -> Domain where
I: Into<String>,
[src]
I: Into<String>,
create a new instance from a string without validating the input
Trait Implementations
impl AsRef<str> for Domain
[src]
impl Clone for Domain
[src]
impl Debug for Domain
[src]
impl Eq for Domain
[src]
impl From<Domain> for ClientId
[src]
impl FromStr for Domain
[src]
type Err = SyntaxError
The associated error which can be returned from parsing.
fn from_str(inp: &str) -> Result<Domain, <Domain as FromStr>::Err>
[src]
impl Hash for Domain
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Into<String> for Domain
[src]
impl<'a> PartialEq<&'a str> for Domain
[src]
impl PartialEq<Domain> for Domain
[src]
impl PartialEq<String> for Domain
[src]
impl PartialEq<str> for Domain
[src]
impl StructuralEq for Domain
[src]
impl StructuralPartialEq for Domain
[src]
Auto Trait Implementations
impl RefUnwindSafe for Domain
impl Send for Domain
impl Sync for Domain
impl Unpin for Domain
impl UnwindSafe for Domain
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T> HeaderTryFrom<T> for T
[src]
fn try_from(val: T) -> Result<T, ComponentCreationError>
[src]
impl<F, T> HeaderTryInto<T> for F where
T: HeaderTryFrom<F>,
[src]
T: HeaderTryFrom<F>,
fn try_into(self) -> Result<T, ComponentCreationError>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,