pub struct DeckSubmissionEvent { /* private fields */ }Expand description
Deck-submission event.
Parsed from ==> EventSetDeckV2, ==> EventSetDeckV3, and future
Vn request lines. The payload carries the submitted deck’s registered
Format, DeckId, EventName (queue string), and is_singleton
flag (non-empty CommandZone). Used by the C-2b format model as the
fallback format signal for bot-match queues where event_id alone does
not resolve the format.
Implementations§
Source§impl DeckSubmissionEvent
impl DeckSubmissionEvent
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 DeckSubmissionEvent
impl Clone for DeckSubmissionEvent
Source§fn clone(&self) -> DeckSubmissionEvent
fn clone(&self) -> DeckSubmissionEvent
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 moreSource§impl Debug for DeckSubmissionEvent
impl Debug for DeckSubmissionEvent
Source§impl<'de> Deserialize<'de> for DeckSubmissionEvent
impl<'de> Deserialize<'de> for DeckSubmissionEvent
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 DeckSubmissionEvent
impl PartialEq for DeckSubmissionEvent
Source§fn eq(&self, other: &DeckSubmissionEvent) -> bool
fn eq(&self, other: &DeckSubmissionEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DeckSubmissionEvent
impl Serialize for DeckSubmissionEvent
impl StructuralPartialEq for DeckSubmissionEvent
Auto Trait Implementations§
impl Freeze for DeckSubmissionEvent
impl RefUnwindSafe for DeckSubmissionEvent
impl Send for DeckSubmissionEvent
impl Sync for DeckSubmissionEvent
impl Unpin for DeckSubmissionEvent
impl UnsafeUnpin for DeckSubmissionEvent
impl UnwindSafe for DeckSubmissionEvent
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