ed_journals/modules/logs/content/log_event_content/
touchdown_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
29
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct TouchdownEvent {
    pub player_controlled: bool,
    pub taxi: bool,
    pub multicrew: bool,
    pub star_system: String,
    pub system_address: u64,
    pub body: String,

    #[serde(rename = "BodyID")]
    pub body_id: u8,
    pub on_station: bool,
    pub on_planet: bool,

    #[serde(flatten)]
    pub location: Option<TouchdownEventPosition>,

    pub nearest_destination: Option<String>,
}

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct TouchdownEventPosition {
    pub latitude: f32,
    pub longitude: f32,
}