pub struct TornItemMods {
pub id: ItemModId,
pub name: String,
pub description: String,
pub dual_fit: bool,
pub weapons: Vec<TornItemWeaponTypeEnum>,
}
Fields§
§id: ItemModId
§name: String
§description: String
§dual_fit: bool
Whether the upgrade fits on dual weapons.
weapons: Vec<TornItemWeaponTypeEnum>
The weapon types this upgrade can be attached to.
Trait Implementations§
Source§impl Clone for TornItemMods
impl Clone for TornItemMods
Source§fn clone(&self) -> TornItemMods
fn clone(&self) -> TornItemMods
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TornItemMods
impl Debug for TornItemMods
Source§impl<'de> Deserialize<'de> for TornItemMods
impl<'de> Deserialize<'de> for TornItemMods
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 PartialEq for TornItemMods
impl PartialEq for TornItemMods
impl StructuralPartialEq for TornItemMods
Auto Trait Implementations§
impl Freeze for TornItemMods
impl RefUnwindSafe for TornItemMods
impl Send for TornItemMods
impl Sync for TornItemMods
impl Unpin for TornItemMods
impl UnwindSafe for TornItemMods
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