pub struct BuyWeaponEvent {
pub name: Weapon,
pub name_localized: Option<String>,
pub class: u8,
pub price: u64,
pub suit_module_id: u64,
pub weapon_mods: Vec<WeaponMod>,
}
Expand description
Fired when the player buys an (Odyssey) weapon.
Fields§
§name: Weapon
The weapon the player bought.
name_localized: Option<String>
The localized name of the weapon the player bought.
class: u8
The class of the weapon bought.
price: u64
The cost in credits the player paid.
suit_module_id: u64
The id of the weapon.
weapon_mods: Vec<WeaponMod>
List of (pre-installed) weapons mods.
Trait Implementations§
Source§impl Clone for BuyWeaponEvent
impl Clone for BuyWeaponEvent
Source§fn clone(&self) -> BuyWeaponEvent
fn clone(&self) -> BuyWeaponEvent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BuyWeaponEvent
impl Debug for BuyWeaponEvent
Source§impl<'de> Deserialize<'de> for BuyWeaponEvent
impl<'de> Deserialize<'de> for BuyWeaponEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BuyWeaponEvent
impl PartialEq for BuyWeaponEvent
Source§impl Serialize for BuyWeaponEvent
impl Serialize for BuyWeaponEvent
impl StructuralPartialEq for BuyWeaponEvent
Auto Trait Implementations§
impl Freeze for BuyWeaponEvent
impl RefUnwindSafe for BuyWeaponEvent
impl Send for BuyWeaponEvent
impl Sync for BuyWeaponEvent
impl Unpin for BuyWeaponEvent
impl UnwindSafe for BuyWeaponEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more