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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Fired when there is any update related to the carrier's finances.

use crate::station::CarrierFinance;
use serde::{Deserialize, Serialize};

/// Fired when there is any update related to the carrier's finances.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct CarrierFinanceEvent {
    /// The id of the carrier that the player deposited fuel to. This is functionally the same as
    /// the market id.
    #[serde(rename = "CarrierID")]
    pub carrier_id: u64,

    /// Financial details for a given fleet carrier.
    #[serde(flatten)]
    pub finance: CarrierFinance,
}