pub struct ApproachSettlementEvent {
pub name: String,
pub name_localized: Option<String>,
pub station_info: Option<StationInfo>,
pub system_address: u64,
pub body_id: u8,
pub body_name: String,
pub location: Option<ApproachSettlementEventLocation>,
}
Expand description
Fired when the player approaches a planetary settlement.
Fields§
§name: String
The name of the settlement the player is currently approaching.
name_localized: Option<String>
The localized name of the settlement. This is not always set, but might be set if the name field contains a specific format which would usually be formatted by the game.
station_info: Option<StationInfo>
Station info like for example the market id, though not all settlements have this information as the game also fires this event when approaching settlements the player cannot dock at.
system_address: u64
The system address where the settlement is located.
body_id: u8
The body id of the planet the settlement is located at.
body_name: String
The name of the planet the settlement is located at.
location: Option<ApproachSettlementEventLocation>
Trait Implementations§
Source§impl Clone for ApproachSettlementEvent
impl Clone for ApproachSettlementEvent
Source§fn clone(&self) -> ApproachSettlementEvent
fn clone(&self) -> ApproachSettlementEvent
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 ApproachSettlementEvent
impl Debug for ApproachSettlementEvent
Source§impl<'de> Deserialize<'de> for ApproachSettlementEvent
impl<'de> Deserialize<'de> for ApproachSettlementEvent
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 ApproachSettlementEvent
impl PartialEq for ApproachSettlementEvent
Source§impl Serialize for ApproachSettlementEvent
impl Serialize for ApproachSettlementEvent
impl StructuralPartialEq for ApproachSettlementEvent
Auto Trait Implementations§
impl Freeze for ApproachSettlementEvent
impl RefUnwindSafe for ApproachSettlementEvent
impl Send for ApproachSettlementEvent
impl Sync for ApproachSettlementEvent
impl Unpin for ApproachSettlementEvent
impl UnwindSafe for ApproachSettlementEvent
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