pub struct EmbarkEvent {Show 13 fields
pub id: Option<u32>,
pub star_system: String,
pub system_address: u64,
pub body: String,
pub body_id: u32,
pub on_station: bool,
pub on_planet: bool,
pub station_name: Option<String>,
pub station_type: Option<StationType>,
pub market_id: Option<u64>,
pub srv: bool,
pub taxi: bool,
pub multicrew: bool,
}
Expand description
Fired when the player embarks from their ship.
Fields§
§id: Option<u32>
Currently unknown that this value means. If you know please let me know by opening an issue.
star_system: String
The name of the star system the player is currently in.
system_address: u64
The address of the current system.
body: String
The name of the body the player is currently on.
body_id: u32
The id of the body player is currently on.
on_station: bool
Whether the player is currently on a station.
on_planet: bool
Whether the player is currently on a planet.
station_name: Option<String>
The name of the station the player is currently on.
station_type: Option<StationType>
The type of the station the player is currently on.
market_id: Option<u64>
The market id of the station the player is currently on.
srv: bool
Whether the player has embarked to an SRV.
taxi: bool
Whether the player has embarked a taxi.
multicrew: bool
Whether the player has embarked multicrew.
Trait Implementations§
Source§impl Clone for EmbarkEvent
impl Clone for EmbarkEvent
Source§fn clone(&self) -> EmbarkEvent
fn clone(&self) -> EmbarkEvent
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 EmbarkEvent
impl Debug for EmbarkEvent
Source§impl<'de> Deserialize<'de> for EmbarkEvent
impl<'de> Deserialize<'de> for EmbarkEvent
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 EmbarkEvent
impl PartialEq for EmbarkEvent
Source§impl Serialize for EmbarkEvent
impl Serialize for EmbarkEvent
impl StructuralPartialEq for EmbarkEvent
Auto Trait Implementations§
impl Freeze for EmbarkEvent
impl RefUnwindSafe for EmbarkEvent
impl Send for EmbarkEvent
impl Sync for EmbarkEvent
impl Unpin for EmbarkEvent
impl UnwindSafe for EmbarkEvent
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