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: ShipSlot
The slot the module is assigned to.
item: ShipModule
The assigned module.
on: bool
Whether the module is currently active.
priority: u8
The power priority.
health: f32
The 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 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 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§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 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