pub struct CollectItemsEvent {
pub name: Item,
pub name_localized: Option<String>,
pub kind: ItemCategory,
pub owner_id: u64,
pub count: u16,
pub stolen: bool,
}
Expand description
Fired when the player collects an Odyssey item.
Fields§
§name: Item
The item the player has collected.
name_localized: Option<String>
The localized name of the item the player has collected.
kind: ItemCategory
The type of item the player collected.
owner_id: u64
The id of the owner of the item.
count: u16
The number of items the player collected.
stolen: bool
Whether the items are considered stolen.
Trait Implementations§
Source§impl Clone for CollectItemsEvent
impl Clone for CollectItemsEvent
Source§fn clone(&self) -> CollectItemsEvent
fn clone(&self) -> CollectItemsEvent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CollectItemsEvent
impl Debug for CollectItemsEvent
Source§impl<'de> Deserialize<'de> for CollectItemsEvent
impl<'de> Deserialize<'de> for CollectItemsEvent
Source§fn 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
Source§impl PartialEq for CollectItemsEvent
impl PartialEq for CollectItemsEvent
Source§impl Serialize for CollectItemsEvent
impl Serialize for CollectItemsEvent
impl StructuralPartialEq for CollectItemsEvent
Auto Trait Implementations§
impl Freeze for CollectItemsEvent
impl RefUnwindSafe for CollectItemsEvent
impl Send for CollectItemsEvent
impl Sync for CollectItemsEvent
impl Unpin for CollectItemsEvent
impl UnwindSafe for CollectItemsEvent
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