pub struct Label {
pub id: String,
pub name: String,
pub label_type: Option<String>,
pub message_list_visibility: Option<String>,
pub label_list_visibility: Option<String>,
pub messages_total: Option<i64>,
pub messages_unread: Option<i64>,
pub threads_total: Option<i64>,
pub threads_unread: Option<i64>,
pub color: Option<LabelColor>,
}Expand description
A Gmail label.
Fields§
§id: StringGmail label id.
name: StringDisplay name.
label_type: Option<String>"system" (Gmail-provided, e.g. INBOX) or "user" (user-created).
message_list_visibility: Option<String>Whether messages with this label appear in the message list.
label_list_visibility: Option<String>Whether this label appears in the label list.
messages_total: Option<i64>Total number of messages with this label.
messages_unread: Option<i64>Number of unread messages with this label.
threads_total: Option<i64>Total number of threads with this label.
threads_unread: Option<i64>Number of unread threads with this label.
color: Option<LabelColor>Display colour, when set.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Label
impl<'de> Deserialize<'de> for Label
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 Label
Source§impl JsonlSerialize for Label
impl JsonlSerialize for Label
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnsafeUnpin for Label
impl UnwindSafe for Label
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.