pub struct BuyAmmoEvent {
pub cost: u64,
}
Expand description
Fired when the player buys ammo at a station.
Fields§
§cost: u64
The amount of credits spent to fully restock all weapons.
Trait Implementations§
Source§impl Clone for BuyAmmoEvent
impl Clone for BuyAmmoEvent
Source§fn clone(&self) -> BuyAmmoEvent
fn clone(&self) -> BuyAmmoEvent
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 BuyAmmoEvent
impl Debug for BuyAmmoEvent
Source§impl<'de> Deserialize<'de> for BuyAmmoEvent
impl<'de> Deserialize<'de> for BuyAmmoEvent
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 BuyAmmoEvent
impl PartialEq for BuyAmmoEvent
Source§impl Serialize for BuyAmmoEvent
impl Serialize for BuyAmmoEvent
impl StructuralPartialEq for BuyAmmoEvent
Auto Trait Implementations§
impl Freeze for BuyAmmoEvent
impl RefUnwindSafe for BuyAmmoEvent
impl Send for BuyAmmoEvent
impl Sync for BuyAmmoEvent
impl Unpin for BuyAmmoEvent
impl UnwindSafe for BuyAmmoEvent
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