ed_journals/modules/logs/content/log_event_content/
touchdown_event.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
4#[serde(rename_all = "PascalCase")]
5pub struct TouchdownEvent {
6 pub player_controlled: bool,
7 pub taxi: bool,
8 pub multicrew: bool,
9 pub star_system: String,
10 pub system_address: u64,
11 pub body: String,
12
13 #[serde(rename = "BodyID")]
14 pub body_id: u8,
15 pub on_station: bool,
16 pub on_planet: bool,
17
18 #[serde(flatten)]
19 pub location: Option<TouchdownEventPosition>,
20
21 pub nearest_destination: Option<String>,
22}
23
24#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
25#[serde(rename_all = "PascalCase")]
26pub struct TouchdownEventPosition {
27 pub latitude: f32,
28 pub longitude: f32,
29}