ephemeris_forge_forgejo/api/model/labels.rs
1use facet::Facet;
2
3/// A repository label as Forgejo reports it.
4///
5/// Every property but the id is optional, so a dropped or null property reads
6/// as absent rather than failing the listing.
7#[derive(Clone, Debug, Default, Eq, Facet, PartialEq)]
8pub struct Label {
9 /// The label's numeric identifier, which addresses it in later writes.
10 pub id: i64,
11 /// The label's name.
12 pub name: Option<String>,
13 /// The label's color as six hexadecimal digits.
14 pub color: Option<String>,
15 /// The label's description.
16 pub description: Option<String>,
17 /// Whether the label is scoped.
18 pub exclusive: Option<bool>,
19 /// Whether the label is archived.
20 pub is_archived: Option<bool>,
21}