ed-journals 0.11.2

Provides models for representing and parsing elite dangerous journal files
Documentation
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,
}