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: String
Color of the label as RGB Hex (#rrggbb
).
label_id: i32
ID of the label.
name: String
Name 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 RefUnwindSafe for MailLabel
impl Send for MailLabel
impl Sync for MailLabel
impl Unpin 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