ed_journals/modules/logs/content/log_event_content/module_retrieve_event.rs
1//! Fired when installing a module directly from storage.
2
3use serde::{Deserialize, Serialize};
4
5use crate::modules::ship::{ShipModule, ShipSlot, ShipType};
6
7/// Fired when installing a module directly from storage.
8#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
9#[serde(rename_all = "PascalCase")]
10pub struct ModuleRetrieveEvent {
11 /// The market id where the module was stored at and where the player installed the module.
12 #[serde(rename = "MarketID")]
13 pub market_id: u64,
14
15 /// The slot the module is installed into.
16 pub slot: ShipSlot,
17
18 /// The module that was installed.
19 pub retrieved_item: ShipModule,
20
21 /// The localized name of the module that was installed.
22 #[serde(rename = "RetrievedItem_Localised")]
23 pub retrieved_item_localized: Option<String>,
24
25 /// The type of the current active ship that the module has been installed onto.
26 pub ship: ShipType,
27
28 /// The id of the current active ship that the module has been installed onto.
29 #[serde(rename = "ShipID")]
30 pub ship_id: u64,
31
32 /// Whether the module is hot.
33 pub hot: bool,
34}