pub struct Enchantment {Show 13 fields
pub id: u32,
pub name: String,
pub display_name: String,
pub max_level: u32,
pub min_cost: EnchantmentCost,
pub max_cost: EnchantmentCost,
pub treasure_only: bool,
pub curse: bool,
pub exclude: Vec<String>,
pub category: String,
pub weight: u32,
pub tradeable: bool,
pub discoverable: bool,
}Fields§
§id: u32§name: String§display_name: String§max_level: u32§min_cost: EnchantmentCost§max_cost: EnchantmentCost§treasure_only: bool§curse: bool§exclude: Vec<String>§category: String§weight: u32§tradeable: bool§discoverable: boolTrait Implementations§
Source§impl Clone for Enchantment
impl Clone for Enchantment
Source§fn clone(&self) -> Enchantment
fn clone(&self) -> Enchantment
Returns a copy 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 Enchantment
impl Debug for Enchantment
Source§impl<'de> Deserialize<'de> for Enchantment
impl<'de> Deserialize<'de> for Enchantment
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 Enchantment
impl RefUnwindSafe for Enchantment
impl Send for Enchantment
impl Sync for Enchantment
impl Unpin for Enchantment
impl UnwindSafe for Enchantment
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