edjr 0.1.2

Elite Dangerous Journal Reader
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::Deserialize;

#[derive(Debug, Deserialize)]
pub enum JumpType {
    Hyperspace,
    Supercruise,
}

#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct StartJumpEvent {
    pub jump_type: JumpType,
    pub star_system: Option<String>,
    pub star_class: Option<String>,
    pub system_address: Option<u64>,
    #[serde(default)]
    pub taxi: bool,
}