pub struct OnModItemOpenedEvent {
pub item: LuaItemPrototype,
pub name: &'static str,
pub player_index: u32,
pub quality: LuaQualityPrototype,
pub tick: u32,
}Expand description
Called when the player uses the ‘Open item GUI’ control on an item defined with the ‘mod-openable’ flag
Fields§
§item: LuaItemPrototype§name: &'static str§player_index: u32§quality: LuaQualityPrototype§tick: u32Trait Implementations§
Source§impl Clone for OnModItemOpenedEvent
impl Clone for OnModItemOpenedEvent
Source§fn clone(&self) -> OnModItemOpenedEvent
fn clone(&self) -> OnModItemOpenedEvent
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 OnModItemOpenedEvent
Source§impl Debug for OnModItemOpenedEvent
impl Debug for OnModItemOpenedEvent
Source§impl Default for OnModItemOpenedEvent
impl Default for OnModItemOpenedEvent
Source§fn default() -> OnModItemOpenedEvent
fn default() -> OnModItemOpenedEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnModItemOpenedEvent
impl PartialEq for OnModItemOpenedEvent
impl StructuralPartialEq for OnModItemOpenedEvent
Auto Trait Implementations§
impl Freeze for OnModItemOpenedEvent
impl RefUnwindSafe for OnModItemOpenedEvent
impl Send for OnModItemOpenedEvent
impl Sync for OnModItemOpenedEvent
impl Unpin for OnModItemOpenedEvent
impl UnsafeUnpin for OnModItemOpenedEvent
impl UnwindSafe for OnModItemOpenedEvent
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