pub struct LoadoutEventModule {
pub slot: ShipSlot,
pub item: ShipModule,
pub on: bool,
pub priority: u8,
pub health: f32,
pub value: Option<u32>,
pub ammo_in_clip: Option<u32>,
}Expand description
An active loadout module.
Fields§
§slot: ShipSlotThe slot the module is assigned to.
item: ShipModuleThe assigned module.
on: boolWhether the module is currently active.
priority: u8The power priority.
health: f32The current health for the module.
value: Option<u32>§ammo_in_clip: Option<u32>Trait Implementations§
Source§impl Clone for LoadoutEventModule
impl Clone for LoadoutEventModule
Source§fn clone(&self) -> LoadoutEventModule
fn clone(&self) -> LoadoutEventModule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LoadoutEventModule
impl Debug for LoadoutEventModule
Source§impl<'de> Deserialize<'de> for LoadoutEventModule
impl<'de> Deserialize<'de> for LoadoutEventModule
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 LoadoutEventModule
impl PartialEq for LoadoutEventModule
Source§fn eq(&self, other: &LoadoutEventModule) -> bool
fn eq(&self, other: &LoadoutEventModule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LoadoutEventModule
impl Serialize for LoadoutEventModule
impl StructuralPartialEq for LoadoutEventModule
Auto Trait Implementations§
impl Freeze for LoadoutEventModule
impl RefUnwindSafe for LoadoutEventModule
impl Send for LoadoutEventModule
impl Sync for LoadoutEventModule
impl Unpin for LoadoutEventModule
impl UnsafeUnpin for LoadoutEventModule
impl UnwindSafe for LoadoutEventModule
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