pub struct Label {
pub id: i64,
pub name: Option<String>,
pub color: Option<String>,
pub description: Option<String>,
pub exclusive: Option<bool>,
pub is_archived: Option<bool>,
}Expand description
A repository label as Forgejo reports it.
Every property but the id is optional, so a dropped or null property reads as absent rather than failing the listing.
Fields§
§id: i64The label’s numeric identifier, which addresses it in later writes.
name: Option<String>The label’s name.
color: Option<String>The label’s color as six hexadecimal digits.
description: Option<String>The label’s description.
exclusive: Option<bool>Whether the label is scoped.
is_archived: Option<bool>Whether the label is archived.
Trait Implementations§
impl Eq for Label
impl StructuralPartialEq for Label
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.