pub struct ApproachBodyEvent {
pub star_system: String,
pub body: String,
}
Expand description
Fired whenever the player approaches a body. This is usually when the game also performs a scan which fires a ScanEvent.
Fields§
§star_system: String
The star system the approached body is part of.
body: String
The name of the body which the player is approaching.
Trait Implementations§
Source§impl Clone for ApproachBodyEvent
impl Clone for ApproachBodyEvent
Source§fn clone(&self) -> ApproachBodyEvent
fn clone(&self) -> ApproachBodyEvent
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 ApproachBodyEvent
impl Debug for ApproachBodyEvent
Source§impl<'de> Deserialize<'de> for ApproachBodyEvent
impl<'de> Deserialize<'de> for ApproachBodyEvent
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 ApproachBodyEvent
impl PartialEq for ApproachBodyEvent
Source§impl Serialize for ApproachBodyEvent
impl Serialize for ApproachBodyEvent
impl StructuralPartialEq for ApproachBodyEvent
Auto Trait Implementations§
impl Freeze for ApproachBodyEvent
impl RefUnwindSafe for ApproachBodyEvent
impl Send for ApproachBodyEvent
impl Sync for ApproachBodyEvent
impl Unpin for ApproachBodyEvent
impl UnwindSafe for ApproachBodyEvent
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