pub struct OnCancelledUpgradeEvent {
pub entity: LuaEntity,
pub name: &'static str,
pub player_index: u32,
pub quality: LuaQualityPrototype,
pub target: LuaEntityPrototype,
pub tick: u32,
}Expand description
Called when the upgrade of an entity is canceled.
Fields§
§entity: LuaEntity§name: &'static str§player_index: u32§quality: LuaQualityPrototype§target: LuaEntityPrototype§tick: u32Trait Implementations§
Source§impl Clone for OnCancelledUpgradeEvent
impl Clone for OnCancelledUpgradeEvent
Source§fn clone(&self) -> OnCancelledUpgradeEvent
fn clone(&self) -> OnCancelledUpgradeEvent
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 OnCancelledUpgradeEvent
Source§impl Debug for OnCancelledUpgradeEvent
impl Debug for OnCancelledUpgradeEvent
Source§impl Default for OnCancelledUpgradeEvent
impl Default for OnCancelledUpgradeEvent
Source§fn default() -> OnCancelledUpgradeEvent
fn default() -> OnCancelledUpgradeEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnCancelledUpgradeEvent
impl PartialEq for OnCancelledUpgradeEvent
impl StructuralPartialEq for OnCancelledUpgradeEvent
Auto Trait Implementations§
impl Freeze for OnCancelledUpgradeEvent
impl RefUnwindSafe for OnCancelledUpgradeEvent
impl Send for OnCancelledUpgradeEvent
impl Sync for OnCancelledUpgradeEvent
impl Unpin for OnCancelledUpgradeEvent
impl UnsafeUnpin for OnCancelledUpgradeEvent
impl UnwindSafe for OnCancelledUpgradeEvent
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