pub struct InventoryEvent { /* private fields */ }Expand description
Inventory snapshot.
Parsed from <== StartHook responses containing InventoryInfo.
Contains currency, wildcards, boosters, and vault progress.
Implementations§
Source§impl InventoryEvent
impl InventoryEvent
Sourcepub fn new(metadata: EventMetadata, payload: Value) -> Self
pub fn new(metadata: EventMetadata, payload: Value) -> Self
Constructs a new event with the given metadata and payload.
Sourcepub fn metadata(&self) -> &EventMetadata
pub fn metadata(&self) -> &EventMetadata
Returns the shared event metadata.
Trait Implementations§
Source§impl Clone for InventoryEvent
impl Clone for InventoryEvent
Source§fn clone(&self) -> InventoryEvent
fn clone(&self) -> InventoryEvent
Returns a duplicate 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 InventoryEvent
impl Debug for InventoryEvent
Source§impl<'de> Deserialize<'de> for InventoryEvent
impl<'de> Deserialize<'de> for InventoryEvent
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 InventoryEvent
impl PartialEq for InventoryEvent
Source§impl Serialize for InventoryEvent
impl Serialize for InventoryEvent
impl StructuralPartialEq for InventoryEvent
Auto Trait Implementations§
impl Freeze for InventoryEvent
impl RefUnwindSafe for InventoryEvent
impl Send for InventoryEvent
impl Sync for InventoryEvent
impl Unpin for InventoryEvent
impl UnsafeUnpin for InventoryEvent
impl UnwindSafe for InventoryEvent
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