edjr 0.1.1

Elite Dangerous Journal Reader
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use {crate::elite::backpack::BackpackItem, serde::Deserialize};

#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct BackpackEvent {
    components: Option<Vec<BackpackItem>>,
    consumables: Option<Vec<BackpackItem>>,
    data: Option<Vec<BackpackItem>>,
    items: Option<Vec<BackpackItem>>,
    // I guess, TODO: need correction
}
#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct BackpackChangeEvent {
    added: Option<Vec<BackpackItem>>,
    removed: Option<Vec<BackpackItem>>,
}