pub struct MessageId(/* private fields */);Expand description
A message identifier, the msg-id of RFC 5322 §3.6.4, held without its angle brackets.
PEC carries the same identifier in several places: a message’s Message-ID, the X-Riferimento-Message-ID of
the receipts and envelopes for it, and the msgid and identificativo of daticert.xml (§6.3, §7.4). Some write
it between angle brackets and some without, so reading accepts both and compares the identifier itself.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MessageId
impl<'de> Deserialize<'de> for MessageId
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MessageId
Source§impl FromStr for MessageId
impl FromStr for MessageId
Source§fn from_str(value: &str) -> Result<Self, Error>
fn from_str(value: &str) -> Result<Self, Error>
Reads an identifier with or without its angle brackets, ignoring surrounding whitespace.
§Errors
Returns Error::InvalidMessageId when the brackets are unbalanced, or when the identifier holds whitespace
or a bracket, or lacks an @ with text on both sides.
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for MessageId
impl PartialOrd for MessageId
impl StructuralPartialEq for MessageId
Auto Trait Implementations§
impl Forget for MessageId
impl Freeze for MessageId
impl Move 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