pub struct MailLabel {
pub color: String,
pub label_id: i32,
pub name: String,
pub unread_count: Option<i32>,
}Expand description
Information about an individual mail label.
Fields§
§color: StringColor of the label as RGB Hex (#rrggbb).
label_id: i32ID of the label.
name: StringName of the label.
unread_count: Option<i32>Number of unread messages with this label.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MailLabel
impl<'de> Deserialize<'de> for MailLabel
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
Auto Trait Implementations§
impl Freeze for MailLabel
impl RefUnwindSafe for MailLabel
impl Send for MailLabel
impl Sync for MailLabel
impl Unpin for MailLabel
impl UnsafeUnpin for MailLabel
impl UnwindSafe for MailLabel
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