pub struct HistoryMessageRef {
pub id: String,
pub thread_id: String,
pub label_ids: Vec<String>,
}Expand description
A (id, threadId, labelIds) triple, as embedded in
messagesAdded/messagesDeleted history events.
Distinct from MessageRef (which messages.list returns and which
never carries labelIds) because history events need the label set to
seed a new message’s archived record without a second fetch — see
src/cli/gmail/sync/engine.rs.
Fields§
§id: StringGmail message id.
thread_id: StringId of the thread this message belongs to.
label_ids: Vec<String>Labels applied to the message at the time of this history event.
Trait Implementations§
Source§impl Clone for HistoryMessageRef
impl Clone for HistoryMessageRef
Source§fn clone(&self) -> HistoryMessageRef
fn clone(&self) -> HistoryMessageRef
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 HistoryMessageRef
impl Debug for HistoryMessageRef
Source§impl Default for HistoryMessageRef
impl Default for HistoryMessageRef
Source§fn default() -> HistoryMessageRef
fn default() -> HistoryMessageRef
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HistoryMessageRef
impl<'de> Deserialize<'de> for HistoryMessageRef
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 HistoryMessageRef
Source§impl PartialEq for HistoryMessageRef
impl PartialEq for HistoryMessageRef
Source§impl Serialize for HistoryMessageRef
impl Serialize for HistoryMessageRef
impl StructuralPartialEq for HistoryMessageRef
Auto Trait Implementations§
impl Freeze for HistoryMessageRef
impl RefUnwindSafe for HistoryMessageRef
impl Send for HistoryMessageRef
impl Sync for HistoryMessageRef
impl Unpin for HistoryMessageRef
impl UnsafeUnpin for HistoryMessageRef
impl UnwindSafe for HistoryMessageRef
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.