f3_rs/
label.rs

1// Copyright (C) 2023  Aravinth Manivannan <realaravinth@batsense.net>
2// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
3//
4// SPDX-License-Identifier: MIT
5
6//! Label associated to an issue or a comment
7
8use serde::{Deserialize, Serialize};
9
10/// Label associated to an issue or a comment
11#[derive(Clone, Debug, Serialize, Deserialize, Default, Eq, PartialEq)]
12pub struct Label {
13    /// Unique identifier of the label
14    pub index: usize,
15
16    /// Name of the label, unique within the repository
17    pub name: String,
18
19    /// Color code of the label
20    pub color: String,
21
22    /// Long, multi-line description
23    pub description: Option<String>,
24}