pub struct ShipInternalModule {
pub module: InternalModule,
pub size: u8,
pub class: ModuleClass,
pub free: bool,
}
Expand description
Model for internal modules, this includes both core internals and optional internals.
Fields§
§module: InternalModule
The kind internal module, which can both be core- and optional internals.
size: u8
The module size.
class: ModuleClass
The class of the module.
free: bool
Whether the module is a free module.
Implementations§
Source§impl ShipInternalModule
impl ShipInternalModule
Sourcepub fn internal_type(&self) -> InternalType
pub fn internal_type(&self) -> InternalType
Returns whether the module is a core- or optional type.
Sourcepub fn is_core_internal(&self) -> bool
pub fn is_core_internal(&self) -> bool
Whether the module is a core internal.
Sourcepub fn is_optional_internal(&self) -> bool
pub fn is_optional_internal(&self) -> bool
Whether the module is an option internal.
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 ShipInternalModule
impl Clone for ShipInternalModule
Source§fn clone(&self) -> ShipInternalModule
fn clone(&self) -> ShipInternalModule
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 ShipInternalModule
impl Debug for ShipInternalModule
Source§impl<'de> Deserialize<'de> for ShipInternalModule
impl<'de> Deserialize<'de> for ShipInternalModule
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 Display for ShipInternalModule
impl Display for ShipInternalModule
Source§impl FromStr for ShipInternalModule
impl FromStr for ShipInternalModule
Source§impl PartialEq for ShipInternalModule
impl PartialEq for ShipInternalModule
Source§impl Serialize for ShipInternalModule
impl Serialize for ShipInternalModule
impl StructuralPartialEq for ShipInternalModule
Auto Trait Implementations§
impl Freeze for ShipInternalModule
impl RefUnwindSafe for ShipInternalModule
impl Send for ShipInternalModule
impl Sync for ShipInternalModule
impl Unpin for ShipInternalModule
impl UnwindSafe for ShipInternalModule
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