pub struct Domain(/* private fields */);Expand description
A validated SMTP domain name.
RFC 5321 Section 4.1.2: Domain = sub-domain *("." sub-domain).
Each label is 1-63 octets of Let-dig [Ldh-str], and the total
domain is at most 255 octets (RFC 5321 Section 4.5.3.1.2).
Implementations§
Trait Implementations§
Source§impl TryFrom<&str> for Domain
impl TryFrom<&str> for Domain
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for Domain
impl TryFrom<String> for Domain
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
impl Eq for Domain
impl StructuralPartialEq for Domain
Auto Trait Implementations§
impl Freeze for Domain
impl RefUnwindSafe for Domain
impl Send for Domain
impl Sync for Domain
impl Unpin for Domain
impl UnsafeUnpin for Domain
impl UnwindSafe for Domain
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