ed_journals/modules/logs/content/log_event_content/
prospected_asteroid_event.rsuse serde::{Deserialize, Serialize};
use crate::modules::trading::Commodity;
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct ProspectedAsteroidEvent {
pub materials: Vec<ProspectedAsteroidEventMaterial>,
pub content: ProspectedAsteroidEventContent,
#[serde(rename = "Content_Localised")]
pub content_localized: Option<String>,
pub motherlode_material: Option<Commodity>,
#[serde(rename = "MotherlodeMaterial_Localised")]
pub motherlode_material_localized: Option<String>,
pub remaining: f32,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct ProspectedAsteroidEventMaterial {
pub name: Commodity,
#[serde(rename = "Name_Localised")]
pub name_localized: Option<String>,
pub proportion: f32,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub enum ProspectedAsteroidEventContent {
#[serde(rename = "$AsteroidMaterialContent_High;")]
HighMaterialContent,
#[serde(rename = "$AsteroidMaterialContent_Medium;")]
MediumMaterialContent,
#[serde(rename = "$AsteroidMaterialContent_Low;")]
LowMaterialContent,
}