ed_journals/modules/ship_locker/models/
ship_locker.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::ship_locker::ShipLockerEntry;

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

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