Struct google_gmail1::api::Label[][src]

pub struct Label {
    pub color: Option<LabelColor>,
    pub id: Option<String>,
    pub label_list_visibility: Option<String>,
    pub message_list_visibility: Option<String>,
    pub messages_total: Option<i32>,
    pub messages_unread: Option<i32>,
    pub name: Option<String>,
    pub threads_total: Option<i32>,
    pub threads_unread: Option<i32>,
    pub type_: Option<String>,
}
Expand description

Labels are used to categorize messages and threads within the user’s mailbox.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

color: Option<LabelColor>

The color to assign to the label. Color is only available for labels that have their type set to user.

id: Option<String>

The immutable ID of the label.

label_list_visibility: Option<String>

The visibility of the label in the label list in the Gmail web interface.

message_list_visibility: Option<String>

The visibility of messages with this label in the message list in the Gmail web interface.

messages_total: Option<i32>

The total number of messages with the label.

messages_unread: Option<i32>

The number of unread messages with the label.

name: Option<String>

The display name of the label.

threads_total: Option<i32>

The total number of threads with the label.

threads_unread: Option<i32>

The number of unread threads with the label.

type_: Option<String>

The owner type for the label. User labels are created by the user and can be modified and deleted by the user and can be applied to any message or thread. System labels are internally created and cannot be added, modified, or deleted. System labels may be able to be applied to or removed from messages and threads under some circumstances but this is not guaranteed. For example, users can apply and remove the INBOX and UNREAD labels from messages and threads, but cannot apply or remove the DRAFTS or SENT labels from messages or threads.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.