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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct SellDronesEvent {
    #[serde(rename = "Type")]
    pub kind: SellDronesEventType,
    pub count: u16,
    pub sell_price: u64,
    pub total_sale: u64,
}

// TODO this is the same as buy drones
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub enum SellDronesEventType {
    Drones,
}