2023-10-24 20:03:59 +05:30
|
|
|
// Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
|
|
|
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2023-01-02 22:36:18 +05:30
|
|
|
//! Label associated to an issue or a comment
|
|
|
|
|
2023-01-02 17:13:50 +05:30
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
|
|
|
/// Label associated to an issue or a comment
|
2023-01-03 12:29:26 +05:30
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize, Default, Eq, PartialEq)]
|
2023-01-02 22:21:26 +05:30
|
|
|
pub struct Label {
|
2023-01-02 17:13:50 +05:30
|
|
|
/// Unique identifier of the label
|
|
|
|
pub index: usize,
|
|
|
|
|
|
|
|
/// Name of the label, unique within the repository
|
|
|
|
pub name: String,
|
|
|
|
|
|
|
|
/// Color code of the label
|
|
|
|
pub color: String,
|
|
|
|
|
|
|
|
/// Long, multi-line description
|
|
|
|
pub description: Option<String>,
|
|
|
|
}
|