ed_journals/modules/logs/content/log_event_content/
docked_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
30
//! Fired when the player docks at a station or settlement.

use serde::{Deserialize, Serialize};

use crate::modules::station::{StationInfo, StationType};

/// Fired when the player docks at a station or settlement.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct DockedEvent {
    /// The name of the station or settlement.
    pub station_name: String,

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

    /// The name of the star system the station is in.
    pub star_system: String,

    /// The address of the system the station is in.
    pub system_address: u64,

    /// Detailed information about the docked station.
    #[serde(flatten)]
    pub station_info: StationInfo,

    /// The distance in ls the station is from the main star.
    #[serde(rename = "DistFromStarLS")]
    pub dist_from_star_ls: f32,
}