pub struct SmtpDomain<'a>(pub Cow<'a, str>);Expand description
A domain name (hostname).
Tuple Fields§
§0: Cow<'a, str>Implementations§
Trait Implementations§
Source§impl AsRef<str> for SmtpDomain<'_>
impl AsRef<str> for SmtpDomain<'_>
Source§impl<'a> Clone for SmtpDomain<'a>
impl<'a> Clone for SmtpDomain<'a>
Source§fn clone(&self) -> SmtpDomain<'a>
fn clone(&self) -> SmtpDomain<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SmtpDomain<'a>
impl<'a> Debug for SmtpDomain<'a>
Source§impl Display for SmtpDomain<'_>
impl Display for SmtpDomain<'_>
impl<'a> Eq for SmtpDomain<'a>
Source§impl<'a> From<SmtpDomain<'a>> for Cow<'a, str>
impl<'a> From<SmtpDomain<'a>> for Cow<'a, str>
Source§fn from(domain: SmtpDomain<'a>) -> Self
fn from(domain: SmtpDomain<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<SmtpDomain<'a>> for SmtpEhloDomain<'a>
impl<'a> From<SmtpDomain<'a>> for SmtpEhloDomain<'a>
Source§fn from(domain: SmtpDomain<'a>) -> Self
fn from(domain: SmtpDomain<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for SmtpDomain<'a>
impl<'a> Hash for SmtpDomain<'a>
Source§impl<'a> IntoBoundedStatic for SmtpDomain<'a>
impl<'a> IntoBoundedStatic for SmtpDomain<'a>
Source§type Static = SmtpDomain<'static>
type Static = SmtpDomain<'static>
The target type is bounded by the
'static lifetime.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T into an owned T such that T: 'static.Source§impl<'a> Ord for SmtpDomain<'a>
impl<'a> Ord for SmtpDomain<'a>
Source§fn cmp(&self, other: &SmtpDomain<'a>) -> Ordering
fn cmp(&self, other: &SmtpDomain<'a>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for SmtpDomain<'a>
impl<'a> PartialEq for SmtpDomain<'a>
Source§impl<'a> PartialOrd for SmtpDomain<'a>
impl<'a> PartialOrd for SmtpDomain<'a>
impl<'a> StructuralPartialEq for SmtpDomain<'a>
Source§impl<'a> ToBoundedStatic for SmtpDomain<'a>
impl<'a> ToBoundedStatic for SmtpDomain<'a>
Auto Trait Implementations§
impl<'a> Freeze for SmtpDomain<'a>
impl<'a> RefUnwindSafe for SmtpDomain<'a>
impl<'a> Send for SmtpDomain<'a>
impl<'a> Sync for SmtpDomain<'a>
impl<'a> Unpin for SmtpDomain<'a>
impl<'a> UnsafeUnpin for SmtpDomain<'a>
impl<'a> UnwindSafe for SmtpDomain<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.