pub struct ItemStackDefinition {
pub ammo: f32,
pub count: u32,
pub custom_description: &'static str,
pub durability: f64,
pub health: f32,
pub name: &'static str,
pub quality: &'static str,
pub spoil_percent: f64,
pub tags: LuaAny,
}Fields§
§ammo: f32§count: u32§custom_description: &'static str§durability: f64§health: f32§name: &'static str§quality: &'static str§spoil_percent: f64Trait Implementations§
Source§impl Clone for ItemStackDefinition
impl Clone for ItemStackDefinition
Source§fn clone(&self) -> ItemStackDefinition
fn clone(&self) -> ItemStackDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ItemStackDefinition
Source§impl Debug for ItemStackDefinition
impl Debug for ItemStackDefinition
Source§impl Default for ItemStackDefinition
impl Default for ItemStackDefinition
Source§fn default() -> ItemStackDefinition
fn default() -> ItemStackDefinition
Returns the “default value” for a type. Read more
Source§impl PartialEq for ItemStackDefinition
impl PartialEq for ItemStackDefinition
impl StructuralPartialEq for ItemStackDefinition
Auto Trait Implementations§
impl Freeze for ItemStackDefinition
impl RefUnwindSafe for ItemStackDefinition
impl Send for ItemStackDefinition
impl Sync for ItemStackDefinition
impl Unpin for ItemStackDefinition
impl UnsafeUnpin for ItemStackDefinition
impl UnwindSafe for ItemStackDefinition
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