pub struct LoadGameEventShipInfo {
pub ship: ShipType,
pub ship_id: u32,
pub ship_name: String,
pub ship_ident: String,
pub fuel_level: f32,
pub fuel_capacity: f32,
}
Expand description
Information about the current active ship of the player.
Fields§
§ship: ShipType
The kind of ship currently active.
ship_id: u32
The id of the active ship.
ship_name: String
The name of the ship.
ship_ident: String
The id nameplate of the ship.
fuel_level: f32
The current fuel level of the active ship.
fuel_capacity: f32
The max fuel capacity of the active ship.
Trait Implementations§
Source§impl Clone for LoadGameEventShipInfo
impl Clone for LoadGameEventShipInfo
Source§fn clone(&self) -> LoadGameEventShipInfo
fn clone(&self) -> LoadGameEventShipInfo
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 LoadGameEventShipInfo
impl Debug for LoadGameEventShipInfo
Source§impl<'de> Deserialize<'de> for LoadGameEventShipInfo
impl<'de> Deserialize<'de> for LoadGameEventShipInfo
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 LoadGameEventShipInfo
impl PartialEq for LoadGameEventShipInfo
Source§impl Serialize for LoadGameEventShipInfo
impl Serialize for LoadGameEventShipInfo
impl StructuralPartialEq for LoadGameEventShipInfo
Auto Trait Implementations§
impl Freeze for LoadGameEventShipInfo
impl RefUnwindSafe for LoadGameEventShipInfo
impl Send for LoadGameEventShipInfo
impl Sync for LoadGameEventShipInfo
impl Unpin for LoadGameEventShipInfo
impl UnwindSafe for LoadGameEventShipInfo
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