1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (C) 2023  Aravinth Manivannan <realaravinth@batsense.net>
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
//
// SPDX-License-Identifier: MIT

//! A list of categories associated with a project.
use serde::{Deserialize, Serialize};

/// A list of categories associated with a project.
#[derive(Clone, Debug, Serialize, Deserialize, Default, Eq, PartialEq)]
pub struct Topic {
    /// Unique identifier of the topic
    pub index: usize,

    /// Name of the category the project belongs to
    pub name: String,
}