pub struct FitItem {
pub type_id: i32,
pub slot: Slot,
pub quantity: u32,
pub state: State,
pub charge: Option<Charge>,
pub mutation: Option<Mutation>,
pub fighter_abilities: Option<BTreeSet<i32>>,
pub booster_side_effects: BTreeSet<i32>,
pub spool: Option<Spool>,
}Expand description
A module, drone, fighter squadron, implant, booster or item in cargo.
Fields§
§type_id: i32The type id of the item.
slot: SlotWhere the item is.
quantity: u321 for modules. Stack size for drones, fighters and cargo; for fighters in a tube, the size of the squadron.
state: StateThe state asked for; the calculation lowers it when the item cannot reach it.
charge: Option<Charge>The charge loaded in the module, if any.
mutation: Option<Mutation>Only for mutated modules and drones.
fighter_abilities: Option<BTreeSet<i32>>Only for fighters: the abilities used, by effect id. None uses the
abilities the fighter uses by default.
booster_side_effects: BTreeSet<i32>Only for boosters: the side effects rolled, by effect id. Empty means none.
spool: Option<Spool>How far a module whose bonus grows every cycle has spooled.
Only per-second stats use it; volley is always unspooled.
None is fully spooled.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FitItem
impl<'de> Deserialize<'de> for FitItem
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
Auto Trait Implementations§
impl Freeze for FitItem
impl RefUnwindSafe for FitItem
impl Send for FitItem
impl Sync for FitItem
impl Unpin for FitItem
impl UnsafeUnpin for FitItem
impl UnwindSafe for FitItem
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