Struct ItemCooldown
pub struct ItemCooldown {
pub group: String,
pub ticks_left: i32,
}Expand description
One item cooldown a player waits on (ItemCooldowns.cooldowns).
Fields§
§group: StringThe cooldown group: an item id, or the group an item’s
use_cooldown component names.
ticks_left: i32Ticks until the cooldown ends.
Trait Implementations§
§impl Clone for ItemCooldown
impl Clone for ItemCooldown
§fn clone(&self) -> ItemCooldown
fn clone(&self) -> ItemCooldown
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 more§impl Debug for ItemCooldown
impl Debug for ItemCooldown
impl Eq for ItemCooldown
§impl PartialEq for ItemCooldown
impl PartialEq for ItemCooldown
impl StructuralPartialEq for ItemCooldown
Auto Trait Implementations§
impl Freeze for ItemCooldown
impl RefUnwindSafe for ItemCooldown
impl Send for ItemCooldown
impl Sync for ItemCooldown
impl Unpin for ItemCooldown
impl UnsafeUnpin for ItemCooldown
impl UnwindSafe for ItemCooldown
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