pub struct ClientActionEvent { /* private fields */ }Expand description
Client-to-GRE player actions.
Covers SelectNResp, SubmitDeckResp, MulliganResp, and other
ClientToGREMessage payloads.
Implementations§
Source§impl ClientActionEvent
impl ClientActionEvent
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 ClientActionEvent
impl Clone for ClientActionEvent
Source§fn clone(&self) -> ClientActionEvent
fn clone(&self) -> ClientActionEvent
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 ClientActionEvent
impl Debug for ClientActionEvent
Source§impl<'de> Deserialize<'de> for ClientActionEvent
impl<'de> Deserialize<'de> for ClientActionEvent
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 ClientActionEvent
impl PartialEq for ClientActionEvent
Source§fn eq(&self, other: &ClientActionEvent) -> bool
fn eq(&self, other: &ClientActionEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ClientActionEvent
impl Serialize for ClientActionEvent
impl StructuralPartialEq for ClientActionEvent
Auto Trait Implementations§
impl Freeze for ClientActionEvent
impl RefUnwindSafe for ClientActionEvent
impl Send for ClientActionEvent
impl Sync for ClientActionEvent
impl Unpin for ClientActionEvent
impl UnsafeUnpin for ClientActionEvent
impl UnwindSafe for ClientActionEvent
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