Struct google_gmail1::api::Label [−][src]
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 create users (request|response)
- labels get users (response)
- labels patch users (request|response)
- labels update users (request|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
impl Clone for Label
[src]
impl Debug for Label
[src]
impl Default for Label
[src]
impl<'de> Deserialize<'de> for Label
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl RequestValue for Label
[src]
impl ResponseResult for Label
[src]
impl Serialize for Label
[src]
Auto Trait Implementations
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,