ed_journals/modules/logs/content/log_event_content/
docking_granted_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
//! Fired when the player has been given permission to dock at a given station.

use serde::{Deserialize, Serialize};

use crate::modules::station::StationType;

/// Fired when the player has been given permission to dock at a given station.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct DockingGrantedEvent {
    /// The station the player has been given permission to dock at.
    pub station_name: String,

    /// The kind of station the player is docking at.
    pub station_type: StationType,

    /// The market id of the station.
    #[serde(rename = "MarketID")]
    pub market_id: u64,

    /// The landing pad the player has to dock at.
    pub landing_pad: u8,
}