Struct esl::Enchantment
source · pub struct Enchantment {
pub enchantment_type: EnchantmentType,
pub cost: u32,
pub charge_amount: u32,
pub auto_calculate: Either<bool, bool>,
pub padding: u16,
}
Fields§
§enchantment_type: EnchantmentType
§cost: u32
§charge_amount: u32
§auto_calculate: Either<bool, bool>
§padding: u16
Trait 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
source§impl PartialEq for Enchantment
impl PartialEq for Enchantment
source§fn eq(&self, other: &Enchantment) -> bool
fn eq(&self, other: &Enchantment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Enchantment
impl Serialize for Enchantment
source§impl From<Enchantment> for Field
impl From<Enchantment> for Field
source§fn from(v: Enchantment) -> Self
fn from(v: Enchantment) -> Self
Converts to this type from the input type.
impl Eq for Enchantment
impl StructuralEq for Enchantment
impl StructuralPartialEq for Enchantment
Auto Trait Implementations§
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