pub struct DeckCollectionEvent { /* private fields */ }Expand description
Deck snapshot.
Parsed from <== StartHook responses containing both DeckSummaries
and Decks. Correlates per-deck metadata with the associated deck
list payload when a matching DeckId is available.
Implementations§
Source§impl DeckCollectionEvent
impl DeckCollectionEvent
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 DeckCollectionEvent
impl Clone for DeckCollectionEvent
Source§fn clone(&self) -> DeckCollectionEvent
fn clone(&self) -> DeckCollectionEvent
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 DeckCollectionEvent
impl Debug for DeckCollectionEvent
Source§impl<'de> Deserialize<'de> for DeckCollectionEvent
impl<'de> Deserialize<'de> for DeckCollectionEvent
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 DeckCollectionEvent
impl PartialEq for DeckCollectionEvent
Source§impl Serialize for DeckCollectionEvent
impl Serialize for DeckCollectionEvent
impl StructuralPartialEq for DeckCollectionEvent
Auto Trait Implementations§
impl Freeze for DeckCollectionEvent
impl RefUnwindSafe for DeckCollectionEvent
impl Send for DeckCollectionEvent
impl Sync for DeckCollectionEvent
impl Unpin for DeckCollectionEvent
impl UnsafeUnpin for DeckCollectionEvent
impl UnwindSafe for DeckCollectionEvent
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