ephemeris_forge_github/api/model/
labels.rs1use facet::Facet;
2
3#[derive(Clone, Debug, Eq, PartialEq)]
5pub struct Label {
6 pub name: String,
8 pub color: String,
10 pub description: Option<String>,
12}
13
14#[derive(Facet)]
16pub(crate) struct LabelResponse {
17 name: String,
18 color: String,
19 #[facet(default)]
20 description: Option<String>,
21}
22
23impl From<LabelResponse> for Label {
24 fn from(value: LabelResponse) -> Self {
25 Self {
26 name: value.name,
27 color: value.color,
28 description: value.description,
29 }
30 }
31}