pub struct ArmorModule {
pub ship: ShipType,
pub grade: ArmorGrade,
}
Expand description
Armor module for a specific ship.
Fields§
§ship: ShipType
§grade: ArmorGrade
Trait Implementations§
Source§impl Clone for ArmorModule
impl Clone for ArmorModule
Source§fn clone(&self) -> ArmorModule
fn clone(&self) -> ArmorModule
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 ArmorModule
impl Debug for ArmorModule
Source§impl<'de> Deserialize<'de> for ArmorModule
impl<'de> Deserialize<'de> for ArmorModule
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 ArmorModule
impl Display for ArmorModule
Source§impl From<&ArmorModule> for ModuleClass
impl From<&ArmorModule> for ModuleClass
Source§fn from(value: &ArmorModule) -> Self
fn from(value: &ArmorModule) -> Self
Converts to this type from the input type.
Source§impl From<ArmorModule> for ModuleClass
impl From<ArmorModule> for ModuleClass
Source§fn from(value: ArmorModule) -> Self
fn from(value: ArmorModule) -> Self
Converts to this type from the input type.
Source§impl FromStr for ArmorModule
impl FromStr for ArmorModule
Source§impl PartialEq for ArmorModule
impl PartialEq for ArmorModule
Source§impl Serialize for ArmorModule
impl Serialize for ArmorModule
impl StructuralPartialEq for ArmorModule
Auto Trait Implementations§
impl Freeze for ArmorModule
impl RefUnwindSafe for ArmorModule
impl Send for ArmorModule
impl Sync for ArmorModule
impl Unpin for ArmorModule
impl UnwindSafe for ArmorModule
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