ed_journals/modules/logs/content/log_event_content/
restock_vehicle_event.rsuse serde::{Deserialize, Serialize};
use crate::modules::ship::FighterLoadout;
use crate::ship::{FighterType, SRVType};
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct RestockVehicleEvent {
#[serde(rename = "Type")]
pub kind: RestockVehicleEventType,
#[serde(rename = "Type_Localised")]
pub type_localized: Option<String>,
pub loadout: FighterLoadout,
#[serde(rename = "ID")]
pub id: Option<u8>,
pub cost: u64,
pub count: u8,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(untagged)]
pub enum RestockVehicleEventType {
Fighter(FighterType),
SRV(SRVType),
}