ed_journals/modules/backpack/models/
backpack.rs

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

use crate::backpack::models::backpack_entry::BackpackEntry;

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

    #[serde(rename = "event")]
    pub event: String,
    pub items: Vec<BackpackEntry>,
    pub components: Vec<BackpackEntry>,
    pub consumables: Vec<BackpackEntry>,
    pub data: Vec<BackpackEntry>,
}