pub struct BuyDronesEvent {
pub kind: BuyDronesEventType,
pub count: u16,
pub buy_price: u64,
pub total_cost: u64,
}
Expand description
Fired when the player buys limpets at a station.
Fields§
§kind: BuyDronesEventType
The type of drone that was bought. Currently, this is always BuyDronesEventType::Drones.
count: u16
The number of limpet that were bought.
buy_price: u64
The buy price per limpet.
total_cost: u64
The total paid credits for all the limpets.
Trait Implementations§
Source§impl Clone for BuyDronesEvent
impl Clone for BuyDronesEvent
Source§fn clone(&self) -> BuyDronesEvent
fn clone(&self) -> BuyDronesEvent
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 BuyDronesEvent
impl Debug for BuyDronesEvent
Source§impl<'de> Deserialize<'de> for BuyDronesEvent
impl<'de> Deserialize<'de> for BuyDronesEvent
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 BuyDronesEvent
impl PartialEq for BuyDronesEvent
Source§impl Serialize for BuyDronesEvent
impl Serialize for BuyDronesEvent
impl StructuralPartialEq for BuyDronesEvent
Auto Trait Implementations§
impl Freeze for BuyDronesEvent
impl RefUnwindSafe for BuyDronesEvent
impl Send for BuyDronesEvent
impl Sync for BuyDronesEvent
impl Unpin for BuyDronesEvent
impl UnwindSafe for BuyDronesEvent
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