pub struct LootEntry {
pub item_id: String,
pub weight: f32,
pub quantity_min: u32,
pub quantity_max: u32,
}Expand description
A single entry in a loot table.
Fields§
§item_id: String§weight: f32§quantity_min: u32§quantity_max: u32Trait Implementations§
Source§impl<'de> Deserialize<'de> for LootEntry
impl<'de> Deserialize<'de> for LootEntry
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
Auto Trait Implementations§
impl Freeze for LootEntry
impl RefUnwindSafe for LootEntry
impl Send for LootEntry
impl Sync for LootEntry
impl Unpin for LootEntry
impl UnsafeUnpin for LootEntry
impl UnwindSafe for LootEntry
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