Struct gmail::model::LabelsGetResponse
source · pub struct LabelsGetResponse {
pub color: Option<Value>,
pub id: Option<String>,
pub label_list_visibility: Option<String>,
pub message_list_visibility: Option<String>,
pub messages_total: Option<i64>,
pub messages_unread: Option<i64>,
pub name: Option<String>,
pub threads_total: Option<i64>,
pub threads_unread: Option<i64>,
pub type_: Option<String>,
}
Expand description
Labels are used to categorize messages and threads within the user’s mailbox. The maximum number of labels supported for a user’s mailbox is 10,000.
Fields§
§color: Option<Value>
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<i64>
The total number of messages with the label.
messages_unread: Option<i64>
The number of unread messages with the label.
name: Option<String>
The display name of the label.
threads_total: Option<i64>
The total number of threads with the label.
threads_unread: Option<i64>
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§
source§impl Clone for LabelsGetResponse
impl Clone for LabelsGetResponse
source§fn clone(&self) -> LabelsGetResponse
fn clone(&self) -> LabelsGetResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LabelsGetResponse
impl Debug for LabelsGetResponse
source§impl Default for LabelsGetResponse
impl Default for LabelsGetResponse
source§fn default() -> LabelsGetResponse
fn default() -> LabelsGetResponse
source§impl<'de> Deserialize<'de> for LabelsGetResponse
impl<'de> Deserialize<'de> for LabelsGetResponse
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>,
source§impl Display for LabelsGetResponse
impl Display for LabelsGetResponse
Auto Trait Implementations§
impl Freeze for LabelsGetResponse
impl RefUnwindSafe for LabelsGetResponse
impl Send for LabelsGetResponse
impl Sync for LabelsGetResponse
impl Unpin for LabelsGetResponse
impl UnwindSafe for LabelsGetResponse
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)