Struct google_gmail1::Label
source · pub struct Label {
pub name: Option<String>,
pub messages_total: Option<i32>,
pub message_list_visibility: Option<String>,
pub threads_total: Option<i32>,
pub label_list_visibility: Option<String>,
pub threads_unread: Option<i32>,
pub type_: Option<String>,
pub id: Option<String>,
pub messages_unread: Option<i32>,
}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).
- labels patch users (request|response)
- labels get users (response)
- labels update users (request|response)
- labels create users (request|response)
Fields§
§name: Option<String>The display name of the label.
messages_total: Option<i32>The total number of messages with the label.
message_list_visibility: Option<String>The visibility of the label in the message list in the Gmail web interface.
threads_total: Option<i32>The total number of threads with the label.
label_list_visibility: Option<String>The visibility of the label in the label list in the Gmail web interface.
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.
id: Option<String>The immutable ID of the label.
messages_unread: Option<i32>The number of unread messages with the label.
Trait Implementations§
source§impl Deserialize for Label
impl Deserialize for Label
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
impl RequestValue for Label
impl ResponseResult 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more