ed_journals/modules/logs/content/log_event_content/docking_requested_event.rs
1//! Fired when the player has successfully required permission to dock to a given station.
2
3use serde::{Deserialize, Serialize};
4
5use crate::modules::station::StationType;
6
7/// Fired when the player has successfully required permission to dock to a given station.
8#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
9#[serde(rename_all = "PascalCase")]
10pub struct DockingRequestedEvent {
11 /// The name of the station the player wants to dock at.
12 pub station_name: String,
13
14 /// The kind of station the player wants to dock at.
15 pub station_type: StationType,
16
17 /// The market id of the station.
18 #[serde(rename = "MarketID")]
19 pub market_id: u64,
20
21 /// The number of available landing pads at the given station.
22 pub landing_pads: Option<DockingRequestedEventLandingPads>,
23}
24
25/// The number of available landing pads at the given station.
26#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
27#[serde(rename_all = "PascalCase")]
28pub struct DockingRequestedEventLandingPads {
29 /// The total number of small landing pads at the given station.
30 pub small: u8,
31
32 /// The total number of medium landing pads at the given station.
33 pub medium: u8,
34
35 /// The total number of large landing pads at the given station.
36 pub large: u8,
37}