pub struct LoadoutEvent {
pub ship: ShipType,
pub ship_id: u32,
pub ship_name: String,
pub ship_ident: String,
pub modules: Vec<LoadoutEventModule>,
}
Expand description
Fired when there are updates to the player’s ship modules.
Fields§
§ship: ShipType
The current active ship.
ship_id: u32
The current active ship id.
ship_name: String
The name of the current active ship.
ship_ident: String
The name of the current call-sign.
modules: Vec<LoadoutEventModule>
List of current modules.
Trait Implementations§
Source§impl Clone for LoadoutEvent
impl Clone for LoadoutEvent
Source§fn clone(&self) -> LoadoutEvent
fn clone(&self) -> LoadoutEvent
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 LoadoutEvent
impl Debug for LoadoutEvent
Source§impl<'de> Deserialize<'de> for LoadoutEvent
impl<'de> Deserialize<'de> for LoadoutEvent
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 LoadoutEvent
impl PartialEq for LoadoutEvent
Source§impl Serialize for LoadoutEvent
impl Serialize for LoadoutEvent
impl StructuralPartialEq for LoadoutEvent
Auto Trait Implementations§
impl Freeze for LoadoutEvent
impl RefUnwindSafe for LoadoutEvent
impl Send for LoadoutEvent
impl Sync for LoadoutEvent
impl Unpin for LoadoutEvent
impl UnwindSafe for LoadoutEvent
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