features_cli/
models.rs

1use std::collections::HashMap;
2
3#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
4pub struct Change {
5    pub title: String,
6    pub author_name: String,
7    pub author_email: String,
8    pub description: String,
9    pub date: String,
10    pub hash: String,
11}
12
13#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
14pub struct Stats {
15    pub commits: HashMap<String, serde_json::Value>,
16}
17
18#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
19pub struct Feature {
20    pub name: String,
21    pub description: String,
22    pub owner: String,
23    pub path: String,
24    pub features: Vec<Feature>,
25    pub meta: HashMap<String, serde_json::Value>,
26    pub changes: Vec<Change>,
27    pub decisions: Vec<String>,
28    #[serde(skip_serializing_if = "Option::is_none")]
29    pub stats: Option<Stats>,
30}