pub struct Label {
pub id: i64,
pub key: String,
pub description: Option<String>,
pub color: Option<String>,
pub kind: Option<String>,
pub repo_id: Option<i64>,
pub space_id: Option<i64>,
pub scope: Option<i64>,
pub value_count: Option<i64>,
pub created: Option<i64>,
pub updated: Option<i64>,
}Expand description
A label defined on a repository or a space.
GitFox labels are keyed rather than named, and a label may carry a set of
values (priority:high). Colours come from a fixed palette of names.
Fields§
§id: i64§key: String§description: Option<String>§color: Option<String>§kind: Option<String>static or dynamic.
repo_id: Option<i64>Set for a repository label; a space label has space_id instead.
space_id: Option<i64>§scope: Option<i64>§value_count: Option<i64>§created: Option<i64>§updated: Option<i64>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 Forget for Label
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