pub struct OnRecipeCraftedData {
pub bonus: bool,
pub entity: LuaEntity,
pub name: &'static str,
pub product_quality: &'static str,
pub quality_effect: Option<EffectValue>,
pub quality_seed: Option<f64>,
pub recipe: &'static str,
pub recipe_quality: &'static str,
pub shared_roll: f64,
pub tick: u32,
}Fields§
§bonus: bool§entity: LuaEntity§name: &'static str§product_quality: &'static str§quality_effect: Option<EffectValue>§quality_seed: Option<f64>§recipe: &'static str§recipe_quality: &'static str§tick: u32Trait Implementations§
Source§impl Clone for OnRecipeCraftedData
impl Clone for OnRecipeCraftedData
Source§fn clone(&self) -> OnRecipeCraftedData
fn clone(&self) -> OnRecipeCraftedData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OnRecipeCraftedData
Source§impl Debug for OnRecipeCraftedData
impl Debug for OnRecipeCraftedData
Source§impl Default for OnRecipeCraftedData
impl Default for OnRecipeCraftedData
Source§fn default() -> OnRecipeCraftedData
fn default() -> OnRecipeCraftedData
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnRecipeCraftedData
impl PartialEq for OnRecipeCraftedData
impl StructuralPartialEq for OnRecipeCraftedData
Auto Trait Implementations§
impl Freeze for OnRecipeCraftedData
impl RefUnwindSafe for OnRecipeCraftedData
impl Send for OnRecipeCraftedData
impl Sync for OnRecipeCraftedData
impl Unpin for OnRecipeCraftedData
impl UnsafeUnpin for OnRecipeCraftedData
impl UnwindSafe for OnRecipeCraftedData
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