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
sourceimpl Clone for Ingredient
impl Clone for Ingredient
sourcefn clone(&self) -> Ingredient
fn clone(&self) -> Ingredient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Ingredient
impl Debug for Ingredient
sourceimpl<'de> Deserialize<'de> for Ingredient
impl<'de> Deserialize<'de> for Ingredient
sourcefn 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
sourceimpl From<Ingredient> for Field
impl From<Ingredient> for Field
sourcefn from(v: Ingredient) -> Self
fn from(v: Ingredient) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<Ingredient> for Ingredient
impl PartialEq<Ingredient> for Ingredient
sourceimpl Serialize for Ingredient
impl Serialize for Ingredient
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more