pub struct GmailLabel {
pub id: String,
pub name: String,
pub label_type: Option<GmailLabelType>,
pub message_list_visibility: Option<GmailMessageListVisibility>,
pub label_list_visibility: Option<GmailLabelListVisibility>,
pub messages_total: Option<u64>,
pub messages_unread: Option<u64>,
pub threads_total: Option<u64>,
pub threads_unread: Option<u64>,
pub color: Option<GmailLabelColor>,
}Expand description
A Gmail label resource.
Labels are used to categorize messages and threads within the user’s mailbox.
Fields§
§id: StringThe immutable id of the label.
name: StringThe display name of the label.
label_type: Option<GmailLabelType>The owner type of the label, serialized as type.
message_list_visibility: Option<GmailMessageListVisibility>The visibility of messages with this label in the message list.
label_list_visibility: Option<GmailLabelListVisibility>The visibility of the label in the label list.
messages_total: Option<u64>The total number of messages with the label.
messages_unread: Option<u64>The number of unread messages with the label.
threads_total: Option<u64>The total number of threads with the label.
threads_unread: Option<u64>The number of unread threads with the label.
color: Option<GmailLabelColor>The color of the label; only available for user labels.
Trait Implementations§
Source§impl Clone for GmailLabel
impl Clone for GmailLabel
Source§fn clone(&self) -> GmailLabel
fn clone(&self) -> GmailLabel
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 GmailLabel
impl Debug for GmailLabel
Source§impl Default for GmailLabel
impl Default for GmailLabel
Source§fn default() -> GmailLabel
fn default() -> GmailLabel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GmailLabel
impl<'de> Deserialize<'de> for GmailLabel
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 GmailLabel
Source§impl JsonSchema for GmailLabel
impl JsonSchema for GmailLabel
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for GmailLabel
impl PartialEq for GmailLabel
Source§impl Serialize for GmailLabel
impl Serialize for GmailLabel
impl StructuralPartialEq for GmailLabel
Auto Trait Implementations§
impl Freeze for GmailLabel
impl RefUnwindSafe for GmailLabel
impl Send for GmailLabel
impl Sync for GmailLabel
impl Unpin for GmailLabel
impl UnsafeUnpin for GmailLabel
impl UnwindSafe for GmailLabel
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