ed_journals/modules/logs/content/log_event_content/
statistics_event.rsuse serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct StatisticsEvent {
#[serde(rename = "Bank_Account")]
pub bank_account: StatisticsBankAccount,
pub combat: StatisticsCombat,
pub crime: StatisticsCrime,
pub smuggling: StatisticsSmuggling,
pub trading: StatisticsTrading,
pub mining: StatisticsMining,
pub exploration: StatisticsExploration,
pub passengers: StatisticsPassengers,
#[serde(rename = "Search_And_Rescue")]
pub search_and_rescue: StatisticsSearchAndRescue,
pub crafting: Option<StatisticsCrafting>,
pub crew: Option<StatisticsCrew>,
pub multicrew: Option<StatisticsMulticrew>,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub struct StatisticsBankAccount {
#[serde(rename = "Current_Wealth")]
pub current_wealth: u64,
#[serde(rename = "Spent_On_Ships")]
pub spent_on_ships: u64,
#[serde(rename = "Spent_On_Outfitting")]
pub spent_on_outfitting: u64,
#[serde(rename = "Spent_On_Repairs")]
pub spent_on_repairs: u64,
#[serde(rename = "Spent_On_Fuel")]
pub spent_on_fuel: u64,
#[serde(rename = "Spent_On_Ammo_Consumables")]
pub spent_on_ammo_consumables: u64,
#[serde(rename = "Insurance_Claims")]
pub insurance_claims: u64,
#[serde(rename = "Spent_On_Insurance")]
pub spent_on_insurance: u64,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub struct StatisticsCombat {
#[serde(rename = "Bounties_Claimed")]
pub bounties_claimed: u32,
#[serde(rename = "Bounty_Hunting_Profit")]
pub bounty_hunting_profit: f32,
#[serde(rename = "Combat_Bonds")]
pub combat_bonds: u32,
#[serde(rename = "Combat_Bond_Profits")]
pub combat_bond_profits: i64,
#[serde(rename = "Assassinations")]
pub assassinations: u32,
#[serde(rename = "Assassination_Profits")]
pub assassination_profits: i64,
#[serde(rename = "Highest_Single_Reward")]
pub highest_single_reward: u64,
#[serde(rename = "Skimmers_Killed", default)]
pub skimmers_killed: u32,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub struct StatisticsCrime {
#[serde(rename = "Fines")]
pub fines: u64,
#[serde(rename = "Total_Fines")]
pub total_fines: u64,
#[serde(rename = "Bounties_Received")]
pub bounties_received: u32,
#[serde(rename = "Total_Bounties")]
pub total_bounties: u64,
#[serde(rename = "Highest_Bounty")]
pub highest_bounty: u64,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub struct StatisticsSmuggling {
#[serde(rename = "Black_Markets_Traded_With")]
pub black_markets_traded_with: u32,
#[serde(rename = "Black_Markets_Profits")]
pub black_markets_profits: i64,
#[serde(rename = "Resources_Smuggled")]
pub resources_smuggled: u32,
#[serde(rename = "Average_Profit")]
pub average_profit: f32,
#[serde(rename = "Highest_Single_Transaction")]
pub highest_single_transaction: i64,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub struct StatisticsTrading {
#[serde(rename = "Markets_Traded_With")]
pub markets_traded_with: u32,
#[serde(rename = "Market_Profits")]
pub market_profits: i64,
#[serde(rename = "Resources_Traded")]
pub resources_traded: u32,
#[serde(rename = "Average_Profit")]
pub average_profit: f32,
#[serde(rename = "Highest_Single_Transaction")]
pub highest_single_transaction: i64,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub struct StatisticsMining {
#[serde(rename = "Mining_Profits")]
mining_profits: i64,
#[serde(rename = "Quantity_Mined")]
quantity_mined: u32,
#[serde(rename = "Materials_Collected", default)]
materials_collected: u32,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub struct StatisticsExploration {
#[serde(rename = "Systems_Visited")]
pub systems_visited: u32,
#[serde(rename = "Exploration_Profits")]
pub exploration_profits: i64,
#[serde(rename = "Planets_Scanned_To_Level_2")]
pub planets_scanned_to_level_2: u32,
#[serde(rename = "Planets_Scanned_To_Level_3")]
pub planets_scanned_to_level_3: u32,
#[serde(rename = "Highest_Payout")]
pub highest_payout: u64,
#[serde(rename = "Total_Hyperspace_Distance")]
pub total_hyperspace_distance: u32,
#[serde(rename = "Total_Hyperspace_Jumps")]
pub total_hyperspace_jumps: u32,
#[serde(rename = "Greatest_Distance_From_Start")]
pub greatest_distance_from_start: f32,
#[serde(rename = "Time_Played")]
pub time_played: u32,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub struct StatisticsPassengers {
#[serde(rename = "Passengers_Missions_Bulk")]
pub passengers_missions_bulk: u32,
#[serde(rename = "Passengers_Missions_VIP")]
pub passengers_missions_vip: u32,
#[serde(rename = "Passengers_Missions_Delivered")]
pub passengers_missions_delivered: u32,
#[serde(rename = "Passengers_Missions_Ejected")]
pub passengers_missions_ejected: u32,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct StatisticsSearchAndRescue {
#[serde(rename = "SearchRescue_Traded")]
pub search_rescue_traded: u32,
#[serde(rename = "SearchRescue_Profit")]
pub search_rescue_profit: i64,
#[serde(rename = "SearchRescue_Count")]
pub search_rescue_count: u32,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct StatisticsCrafting {
#[serde(rename = "Count_Of_Used_Engineers")]
pub count_of_used_engineers: u32,
#[serde(rename = "Recipes_Generated")]
pub recipes_generated: u32,
#[serde(rename = "Recipes_Generated_Rank_1")]
pub recipes_generated_rank_1: u32,
#[serde(rename = "Recipes_Generated_Rank_2")]
pub recipes_generated_rank_2: u32,
#[serde(rename = "Recipes_Generated_Rank_3")]
pub recipes_generated_rank_3: u32,
#[serde(rename = "Recipes_Generated_Rank_4")]
pub recipes_generated_rank_4: u32,
#[serde(rename = "Recipes_Generated_Rank_5")]
pub recipes_generated_rank_5: u32,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub struct StatisticsCrew {
#[serde(rename = "NpcCrew_TotalWages")]
pub npc_crew_total_wages: Option<u64>,
#[serde(rename = "NpcCrew_Hired")]
pub npc_crew_hired: Option<u32>,
#[serde(rename = "NpcCrew_Fired")]
pub npc_crew_fired: Option<u32>,
#[serde(rename = "NpcCrew_Died")]
pub npc_crew_died: Option<u32>,
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct StatisticsMulticrew {
#[serde(rename = "Multicrew_Time_Total")]
pub multicrew_time_total: u32,
#[serde(rename = "Multicrew_Gunner_Time_Total")]
pub multicrew_gunner_time_total: u32,
#[serde(rename = "Multicrew_Fighter_Time_Total")]
pub multicrew_fighter_time_total: u32,
#[serde(rename = "Multicrew_Credits_Total")]
pub multicrew_credits_total: u64,
#[serde(rename = "Multicrew_Fines_Total")]
pub multicrew_fines_total: u64,
}