pub struct DockedEvent {
pub station_name: String,
pub station_type: StationType,
pub star_system: String,
pub system_address: u64,
pub station_info: StationInfo,
pub dist_from_star_ls: f32,
}
Expand description
Fired when the player docks at a station or settlement.
Fields§
§station_name: String
The name of the station or settlement.
station_type: StationType
The kind of station the player docked at.
star_system: String
The name of the star system the station is in.
system_address: u64
The address of the system the station is in.
station_info: StationInfo
Detailed information about the docked station.
dist_from_star_ls: f32
The distance in ls the station is from the main star.
Trait Implementations§
Source§impl Clone for DockedEvent
impl Clone for DockedEvent
Source§fn clone(&self) -> DockedEvent
fn clone(&self) -> DockedEvent
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 DockedEvent
impl Debug for DockedEvent
Source§impl<'de> Deserialize<'de> for DockedEvent
impl<'de> Deserialize<'de> for DockedEvent
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 DockedEvent
impl PartialEq for DockedEvent
Source§impl Serialize for DockedEvent
impl Serialize for DockedEvent
impl StructuralPartialEq for DockedEvent
Auto Trait Implementations§
impl Freeze for DockedEvent
impl RefUnwindSafe for DockedEvent
impl Send for DockedEvent
impl Sync for DockedEvent
impl Unpin for DockedEvent
impl UnwindSafe for DockedEvent
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