pub struct Ammo {
pub id: AmmoId,
pub name: String,
pub magazine_rounds: i32,
pub rate_of_fire: RateOfFire,
}
Fields§
§id: AmmoId
§name: String
§magazine_rounds: i32
§rate_of_fire: RateOfFire
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ammo
impl<'de> Deserialize<'de> for Ammo
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
impl StructuralPartialEq for Ammo
Auto Trait Implementations§
impl Freeze for Ammo
impl RefUnwindSafe for Ammo
impl Send for Ammo
impl Sync for Ammo
impl Unpin for Ammo
impl UnwindSafe for Ammo
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