tebex_headless_rust/models/
category.rs

1use serde::{Deserialize, Serialize};
2
3use super::package::Package;
4
5#[derive(Deserialize, Serialize, Clone, Debug)]
6pub struct Category {
7    pub id: i32,
8    pub name: String
9}
10
11#[derive(Deserialize, Serialize, Clone, Debug)]
12pub struct CategoryParent {
13    pub id: i32,
14    pub name: String,
15    pub description: String,
16    pub packages: Vec<Package>,
17    pub order: i32,
18    pub display_type: String
19}
20
21#[derive(Deserialize, Serialize, Clone, Debug)]
22pub struct FullCategory {
23    pub id: i32,
24    pub name: String,
25    pub description: String,
26    pub parent: Option<CategoryParent>,
27    pub order: i32,
28    pub display_type: String
29}