ed_journals/modules/modules_info/models/
modules_info.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};

use crate::modules_info::models::modules_info_entry::ModulesInfoEntry;

#[derive(Debug, Serialize, Deserialize, PartialEq, Clone)]
#[serde(rename_all = "PascalCase")]
pub struct ModulesInfo {
    #[serde(rename = "timestamp")]
    pub timestamp: DateTime<Utc>,

    #[serde(rename = "event")]
    pub event: String,
    pub modules: Vec<ModulesInfoEntry>,
}