pub struct CarrierBankTransferEvent {
pub carrier_id: u64,
pub deposit: Option<u64>,
pub withdraw: Option<u64>,
pub player_balance: u64,
pub carrier_balance: u64,
}
Expand description
Fired when the player transfers credits either to or from their fleet carrier.
Fields§
§carrier_id: u64
The id of the fleet carrier. This is functionally the same as the market id.
deposit: Option<u64>
The amount the player deposited to the carrier.
withdraw: Option<u64>
The amount the player withdrew from the carrier.
player_balance: u64
The player’s balance after the transfer.
carrier_balance: u64
The carrier’s balance after the transfer.
Trait Implementations§
Source§impl Clone for CarrierBankTransferEvent
impl Clone for CarrierBankTransferEvent
Source§fn clone(&self) -> CarrierBankTransferEvent
fn clone(&self) -> CarrierBankTransferEvent
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 CarrierBankTransferEvent
impl Debug for CarrierBankTransferEvent
Source§impl<'de> Deserialize<'de> for CarrierBankTransferEvent
impl<'de> Deserialize<'de> for CarrierBankTransferEvent
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 CarrierBankTransferEvent
impl PartialEq for CarrierBankTransferEvent
Source§impl Serialize for CarrierBankTransferEvent
impl Serialize for CarrierBankTransferEvent
impl StructuralPartialEq for CarrierBankTransferEvent
Auto Trait Implementations§
impl Freeze for CarrierBankTransferEvent
impl RefUnwindSafe for CarrierBankTransferEvent
impl Send for CarrierBankTransferEvent
impl Sync for CarrierBankTransferEvent
impl Unpin for CarrierBankTransferEvent
impl UnwindSafe for CarrierBankTransferEvent
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