ed_journals/modules/logs/content/log_event_content/
ship_locker_event.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct ShipLockerEvent {
    #[serde(flatten)]
    pub contents: Option<ShipLockerEventContents>,
}

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct ShipLockerEventContents {
    pub items: Vec<ShipLockerEventObject>,
    pub components: Vec<ShipLockerEventObject>,
    pub consumables: Vec<ShipLockerEventObject>,
    pub data: Vec<ShipLockerEventObject>,
}

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct ShipLockerEventObject {
    pub name: String,
    pub owner_id: u64,

    #[serde(rename = "MissionID")]
    pub mission_id: Option<u64>,
    pub count: u16,
}