pub struct EnchantmentRow {
pub id: i32,
pub name: String,
pub duration_ms: u32,
pub effects: [EnchantmentEffect; 3],
pub scaling_class: i32,
pub item_level_min: i32,
pub item_level_max: i32,
pub max_level: i32,
}Expand description
Resolved enchantment row from game.enchantments.
Fields§
§id: i32§name: String§duration_ms: u32§effects: [EnchantmentEffect; 3]§scaling_class: i32§item_level_min: i32§item_level_max: i32§max_level: i32Caps the player level used for scaled stat values (MaxLevel); 0 = uncapped.
Trait Implementations§
Source§impl Clone for EnchantmentRow
impl Clone for EnchantmentRow
Source§fn clone(&self) -> EnchantmentRow
fn clone(&self) -> EnchantmentRow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnchantmentRow
impl Debug for EnchantmentRow
Source§impl Default for EnchantmentRow
impl Default for EnchantmentRow
Source§fn default() -> EnchantmentRow
fn default() -> EnchantmentRow
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnchantmentRow
impl<'de> Deserialize<'de> for EnchantmentRow
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 EnchantmentRow
impl RefUnwindSafe for EnchantmentRow
impl Send for EnchantmentRow
impl Sync for EnchantmentRow
impl Unpin for EnchantmentRow
impl UnsafeUnpin for EnchantmentRow
impl UnwindSafe for EnchantmentRow
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