pub struct MessageSummary {
pub id: String,
pub thread_id: String,
pub from: String,
pub subject: String,
pub date: String,
pub snippet: String,
}Expand description
A search hit enriched with the headers a search-result table/list needs.
Not a Gmail wire type — messages.list only returns {id, threadId};
this is assembled client-side by MessagesApi::search_summaries from a
follow-up messages.get(format=metadata) call per hit.
Fields§
§id: StringGmail message id.
thread_id: StringId of the thread this message belongs to.
from: StringThe From header, or empty if absent.
subject: StringThe Subject header, or empty if absent.
date: StringThe Date header, or empty if absent.
snippet: StringA short, plain-text snippet of the message body.
Implementations§
Source§impl MessageSummary
impl MessageSummary
Sourcepub fn from_message(message: &Message) -> Self
pub fn from_message(message: &Message) -> Self
Builds a summary row from an already-fetched Message — the seam
omni-dev gmail thread reuses to render its per-message rows with
the same table renderer search uses, without a second API call.
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 Default for MessageSummary
impl Default for MessageSummary
Source§fn default() -> MessageSummary
fn default() -> MessageSummary
Returns the “default value” for a type. Read more
impl Eq for MessageSummary
Source§impl PartialEq for MessageSummary
impl PartialEq for MessageSummary
Source§impl Serialize for MessageSummary
impl Serialize for MessageSummary
impl StructuralPartialEq for MessageSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.