ed_journals/modules/logs/content/log_event_content/
book_taxi_event.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! Fired when the player books a taxi at Apex Interstellar Transport.

use serde::{Deserialize, Serialize};

/// Fired when the player books a taxi at Apex Interstellar Transport.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct BookTaxiEvent {
    /// The number of credits the player paid for the booking.
    pub cost: u64,

    /// The name of the system where the taxi will travel to.
    pub destination_system: String,

    /// The name of the location where the taxi will travel to.
    pub destination_location: String,

    /// Whether the booking is considered a retreat.
    #[serde(default)]
    pub retreat: bool,
}