pub struct ShipHardpointModule {
pub module: HardpointModule,
pub mounting: HardpointMounting,
pub size: HardpointSize,
pub class: ModuleClass,
}Expand description
Contains all the data related to hardpoints. This model is used for both full-sized hardpoint modules and utility modules. Utility modules use HardpointSize::Tiny and full-sized modules use the other sizes.
Fields§
§module: HardpointModuleThe kind internal module, which can both be full-sized hardpoints and utility modules.
mounting: HardpointMountingThe mounting type the module used which dictate how aiming works. Utility modules always use HardpointMounting::Turreted.
size: HardpointSizeThe size of the module.
class: ModuleClassThe class of the module.
Implementations§
Source§impl ShipHardpointModule
impl ShipHardpointModule
Sourcepub fn hardpoint_type(&self) -> HardpointType
pub fn hardpoint_type(&self) -> HardpointType
Returns whether the module is a full-sized hardpoint or a utility module.
Sourcepub fn is_full_sized_module(&self) -> bool
pub fn is_full_sized_module(&self) -> bool
Whether the module is a full-sized hardpoint module.
Sourcepub fn is_utility_module(&self) -> bool
pub fn is_utility_module(&self) -> bool
Whether the module is a utility module.
Sourcepub fn is_powerplay_module(&self) -> bool
pub fn is_powerplay_module(&self) -> bool
Whether the module is a module that is unlocked through powerplay.
Sourcepub fn is_guardian_module(&self) -> bool
pub fn is_guardian_module(&self) -> bool
Whether the module is a module that is unlocked using guardian parts at a guardian technology broker.
Trait Implementations§
Source§impl Clone for ShipHardpointModule
impl Clone for ShipHardpointModule
Source§fn clone(&self) -> ShipHardpointModule
fn clone(&self) -> ShipHardpointModule
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ShipHardpointModule
impl Debug for ShipHardpointModule
Source§impl<'de> Deserialize<'de> for ShipHardpointModule
impl<'de> Deserialize<'de> for ShipHardpointModule
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>,
Source§impl Display for ShipHardpointModule
impl Display for ShipHardpointModule
Source§impl FromStr for ShipHardpointModule
impl FromStr for ShipHardpointModule
Source§impl PartialEq for ShipHardpointModule
impl PartialEq for ShipHardpointModule
Source§fn eq(&self, other: &ShipHardpointModule) -> bool
fn eq(&self, other: &ShipHardpointModule) -> bool
self and other values to be equal, and is used by ==.