pub struct Message {
pub id: String,
pub message_id: Option<String>,
pub in_reply_to: Option<String>,
pub references: Vec<String>,
pub date: DateTime<Utc>,
pub subject: String,
}Expand description
A message projected into the fields needed by RFC 5256/JWZ threading.
Fields§
§id: StringCaller-stable message identity returned in thread output.
message_id: Option<String>The RFC 5322 Message-ID value, if present and valid.
in_reply_to: Option<String>The RFC 5322 In-Reply-To value, if present.
references: Vec<String>The ordered RFC 5322 References chain.
date: DateTime<Utc>Message date used for deterministic output ordering.
subject: StringMessage subject used only by optional subject fallback merging.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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