pub struct MessageSummary {
pub id: String,
pub account_id: String,
pub mailbox: String,
pub subject: Option<String>,
pub sender: Option<String>,
pub recipients: Vec<String>,
pub date_received: Option<DateTime<Utc>>,
pub read: bool,
pub preview: Option<String>,
pub body: Option<String>,
}Expand description
One message row. Header-weight by design — body is populated only when
the caller asked for it via MessageQuery::include_body.
Fields§
§id: StringOpaque, backend-qualified id — feed it straight back to
message_body. Callers should not parse it; decode_message_id
is the only supported reader.
account_id: String§mailbox: StringThe mailbox this row came from, as the backend resolved it — not
the selector the caller typed. Same shape as Mailbox::full_name, so
a row asked for as "travel" comes back stamped "Travel/2026" and
can be matched against list_mailboxes output.
subject: Option<String>§sender: Option<String>§recipients: Vec<String>§date_received: Option<DateTime<Utc>>§read: bool§preview: Option<String>Short excerpt. Graph returns bodyPreview for free; Mail.app has no
cheap equivalent, so on macOS this is None unless include_body was
set — in which case it is the head of the body.
body: Option<String>Trait Implementations§
Source§impl Clone for MessageSummary
impl Clone for MessageSummary
Source§fn clone(&self) -> MessageSummary
fn clone(&self) -> MessageSummary
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 MessageSummary
impl Debug for MessageSummary
Source§impl<'de> Deserialize<'de> for MessageSummary
impl<'de> Deserialize<'de> for MessageSummary
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
Auto Trait Implementations§
impl Freeze for MessageSummary
impl RefUnwindSafe for MessageSummary
impl Send for MessageSummary
impl Sync for MessageSummary
impl Unpin for MessageSummary
impl UnsafeUnpin for MessageSummary
impl UnwindSafe for MessageSummary
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