pub struct MessageIdDomain(/* private fields */);Expand description
Message-ID domain part.
Implementations§
Source§impl MessageIdDomain
impl MessageIdDomain
Sourcepub fn new(value: impl AsRef<str>) -> Result<MessageIdDomain, MessageIdError>
pub fn new(value: impl AsRef<str>) -> Result<MessageIdDomain, MessageIdError>
Creates a message-id domain part.
Trait Implementations§
Source§impl Clone for MessageIdDomain
impl Clone for MessageIdDomain
Source§fn clone(&self) -> MessageIdDomain
fn clone(&self) -> MessageIdDomain
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 Debug for MessageIdDomain
impl Debug for MessageIdDomain
Source§impl Display for MessageIdDomain
impl Display for MessageIdDomain
Source§impl FromStr for MessageIdDomain
impl FromStr for MessageIdDomain
Source§type Err = MessageIdError
type Err = MessageIdError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<MessageIdDomain, <MessageIdDomain as FromStr>::Err>
fn from_str( value: &str, ) -> Result<MessageIdDomain, <MessageIdDomain as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for MessageIdDomain
impl Hash for MessageIdDomain
Source§impl Ord for MessageIdDomain
impl Ord for MessageIdDomain
Source§fn cmp(&self, other: &MessageIdDomain) -> Ordering
fn cmp(&self, other: &MessageIdDomain) -> 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 PartialEq for MessageIdDomain
impl PartialEq for MessageIdDomain
Source§fn eq(&self, other: &MessageIdDomain) -> bool
fn eq(&self, other: &MessageIdDomain) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MessageIdDomain
impl PartialOrd for MessageIdDomain
impl Eq for MessageIdDomain
impl StructuralPartialEq for MessageIdDomain
Auto Trait Implementations§
impl Freeze for MessageIdDomain
impl RefUnwindSafe for MessageIdDomain
impl Send for MessageIdDomain
impl Sync for MessageIdDomain
impl Unpin for MessageIdDomain
impl UnsafeUnpin for MessageIdDomain
impl UnwindSafe for MessageIdDomain
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