pub struct Label {
pub id: u64,
pub node_id: String,
pub name: String,
pub description: Option<String>,
pub color: String,
pub default: bool,
}Expand description
GitHub label.
Labels are used to categorize issues and pull requests.
Fields§
§id: u64Unique label identifier
node_id: StringNode ID for GraphQL API
name: StringLabel name
description: Option<String>Label description
color: StringLabel color (6-digit hex code without #)
default: boolWhether this is a default label
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Label
impl<'de> Deserialize<'de> for Label
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 Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more