pub enum CargoTransferEventTransferDirection {
ToCarrier,
ToShip,
ToSRV,
}
Expand description
Where the commodity has been transferred to.
Variants§
ToCarrier
The player transferred to their own fleet carrier.
ToShip
The player transferred to their current ship.
ToSRV
The player transferred to their active SRV.
Implementations§
Source§impl CargoTransferEventTransferDirection
impl CargoTransferEventTransferDirection
Sourcepub fn is_to_carrier(&self) -> bool
pub fn is_to_carrier(&self) -> bool
Whether the player transferred to their carrier.
Sourcepub fn is_to_ship(&self) -> bool
pub fn is_to_ship(&self) -> bool
Whether the player transferred to their ship.
Trait Implementations§
Source§impl Clone for CargoTransferEventTransferDirection
impl Clone for CargoTransferEventTransferDirection
Source§fn clone(&self) -> CargoTransferEventTransferDirection
fn clone(&self) -> CargoTransferEventTransferDirection
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<'de> Deserialize<'de> for CargoTransferEventTransferDirection
impl<'de> Deserialize<'de> for CargoTransferEventTransferDirection
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 CargoTransferEventTransferDirection
impl PartialEq for CargoTransferEventTransferDirection
Source§fn eq(&self, other: &CargoTransferEventTransferDirection) -> bool
fn eq(&self, other: &CargoTransferEventTransferDirection) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CargoTransferEventTransferDirection
Auto Trait Implementations§
impl Freeze for CargoTransferEventTransferDirection
impl RefUnwindSafe for CargoTransferEventTransferDirection
impl Send for CargoTransferEventTransferDirection
impl Sync for CargoTransferEventTransferDirection
impl Unpin for CargoTransferEventTransferDirection
impl UnwindSafe for CargoTransferEventTransferDirection
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