pub struct Armor {
pub armor_type: ArmorType,
pub weight: f32,
pub value: u32,
pub health: u32,
pub enchantment: u32,
pub armor: u32,
}
Fields
armor_type: ArmorType
weight: f32
value: u32
health: u32
enchantment: u32
armor: u32
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Armor
impl<'de> Deserialize<'de> for Armor
sourcefn 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
impl Eq for Armor
Auto Trait Implementations
impl RefUnwindSafe for Armor
impl Send for Armor
impl Sync for Armor
impl Unpin for Armor
impl UnwindSafe for Armor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more