pub struct MessageId { /* private fields */ }Expand description
Message-ID value rendered with angle brackets.
Implementations§
Source§impl MessageId
impl MessageId
Sourcepub fn new(
local: impl AsRef<str>,
domain: impl AsRef<str>,
) -> Result<MessageId, MessageIdError>
pub fn new( local: impl AsRef<str>, domain: impl AsRef<str>, ) -> Result<MessageId, MessageIdError>
Creates a message id from separated local and domain text.
Sourcepub const fn local(&self) -> &MessageIdLocal
pub const fn local(&self) -> &MessageIdLocal
Returns the local part.
Sourcepub const fn domain(&self) -> &MessageIdDomain
pub const fn domain(&self) -> &MessageIdDomain
Returns the domain part.
Trait Implementations§
Source§impl Ord for MessageId
impl Ord for MessageId
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 PartialOrd for MessageId
impl PartialOrd for MessageId
impl Eq for MessageId
impl StructuralPartialEq for MessageId
Auto Trait Implementations§
impl Freeze for MessageId
impl RefUnwindSafe for MessageId
impl Send for MessageId
impl Sync for MessageId
impl Unpin for MessageId
impl UnsafeUnpin for MessageId
impl UnwindSafe for MessageId
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