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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! Fired when the player schedules their carrier for decommission.

use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};

/// Fired when the player schedules their carrier for decommission.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct CarrierDecommissionEvent {
    /// The id of the carrier that is being decommissioned. This is functionally the same as the
    /// market id.
    #[serde(rename = "CarrierID")]
    pub carrier_id: u64,

    /// The amount of credits the player receives back after the carrier has been decommissioned.
    pub scrap_refund: u64,

    /// The timestamp after which the decommission is final.
    pub scrap_time: DateTime<Utc>,
}