#[non_exhaustive]pub enum Rule {
Show 16 variants
Resource {
resource: Resource,
used: f64,
available: f64,
},
Slots {
slot: SlotKind,
used: u32,
available: u32,
},
WrongSlot {
expected: SlotKind,
},
SlotTaken,
WrongSlotIndex {
expected: u16,
},
SubsystemTaken,
Skill {
type_id: i32,
required: u8,
level: u8,
},
RigSize {
ship: u8,
item: u8,
},
ShipRestricted,
CapitalItem,
StructureItem,
ShipItem,
MaxGroup {
group_id: i32,
limit: GroupLimit,
used: u32,
allowed: u32,
},
MaxType {
type_id: i32,
used: u32,
allowed: u32,
},
ChargeGroup,
ChargeSize {
module: u8,
charge: u8,
},
}Expand description
A rule of EVE’s, and the values that failed it.
What an item would accept instead is not repeated here; it is on the item
itself, as chargeGroup1, canFitShipType1 and the like.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Resource
More of a fitting resource used than the ship has.
Fields
Slots
More items in a rack than the ship has slots.
Fields
WrongSlot
The item belongs in another kind of slot.
SlotTaken
Another item of the fit is in this slot too.
WrongSlotIndex
An implant or booster in a slot other than the one it occupies. The
number is implantness or boosterness.
SubsystemTaken
Another subsystem covers the same part of the ship.
Skill
A skill the character is missing, or has not trained far enough.
Fields
RigSize
A rig of another size than the ship takes.
ShipRestricted
The item cannot go on this ship at all.
CapitalItem
A capital item on a ship that is not a capital.
StructureItem
A structure module on something that is not a structure.
ShipItem
A module of a ship on a structure.
MaxGroup
More of a group than the ship may hold in that state.
Fields
limit: GroupLimitThe state the limit counts.
MaxType
More of one type fitted than allowed.
Fields
ChargeGroup
A charge of a group the module does not take.
ChargeSize
A charge of another size than the module takes.