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

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

use crate::modules::odyssey::{Weapon, WeaponMod};

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub struct SellWeaponEvent {
    pub name: Weapon,

    #[serde(rename = "Name_Localised")]
    pub name_localized: Option<String>,

    #[serde(rename = "SuitModuleID")]
    pub suit_module_id: u64,
    pub class: u8,
    pub price: u64,

    #[serde(default)]
    pub weapon_mods: Vec<WeaponMod>,
}