Struct esl::Ingredient
source · pub struct Ingredient {Show 14 fields
pub weight: f32,
pub value: u32,
pub effect_1_index: Either<Option<i32>, EffectIndex>,
pub effect_2_index: Either<Option<i32>, EffectIndex>,
pub effect_3_index: Either<Option<i32>, EffectIndex>,
pub effect_4_index: Either<Option<i32>, EffectIndex>,
pub effect_1_skill: Either<Option<i32>, Skill>,
pub effect_2_skill: Either<Option<i32>, Skill>,
pub effect_3_skill: Either<Option<i32>, Skill>,
pub effect_4_skill: Either<Option<i32>, Skill>,
pub effect_1_attribute: Either<Option<i32>, Attribute>,
pub effect_2_attribute: Either<Option<i32>, Attribute>,
pub effect_3_attribute: Either<Option<i32>, Attribute>,
pub effect_4_attribute: Either<Option<i32>, Attribute>,
}
Fields§
§weight: f32
§value: u32
§effect_1_index: Either<Option<i32>, EffectIndex>
§effect_2_index: Either<Option<i32>, EffectIndex>
§effect_3_index: Either<Option<i32>, EffectIndex>
§effect_4_index: Either<Option<i32>, EffectIndex>
§effect_1_skill: Either<Option<i32>, Skill>
§effect_2_skill: Either<Option<i32>, Skill>
§effect_3_skill: Either<Option<i32>, Skill>
§effect_4_skill: Either<Option<i32>, Skill>
§effect_1_attribute: Either<Option<i32>, Attribute>
§effect_2_attribute: Either<Option<i32>, Attribute>
§effect_3_attribute: Either<Option<i32>, Attribute>
§effect_4_attribute: Either<Option<i32>, Attribute>
Trait Implementations§
source§impl Clone for Ingredient
impl Clone for Ingredient
source§fn clone(&self) -> Ingredient
fn clone(&self) -> Ingredient
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 Ingredient
impl Debug for Ingredient
source§impl<'de> Deserialize<'de> for Ingredient
impl<'de> Deserialize<'de> for Ingredient
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 Ingredient
impl PartialEq for Ingredient
source§impl Serialize for Ingredient
impl Serialize for Ingredient
source§impl From<Ingredient> for Field
impl From<Ingredient> for Field
source§fn from(v: Ingredient) -> Self
fn from(v: Ingredient) -> Self
Converts to this type from the input type.
impl Eq for Ingredient
Auto Trait Implementations§
impl RefUnwindSafe for Ingredient
impl Send for Ingredient
impl Sync for Ingredient
impl Unpin for Ingredient
impl UnwindSafe for Ingredient
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