pub struct GameResultEvent { /* private fields */ }Expand description
Game result event — triggers post-game batch assembly.
Parsed from LogBusinessEvents with WinningType and
GameStage_GameOver. When this event fires, the desktop app
serializes the disk-backed game buffer into a single compressed
payload and uploads it.
Implementations§
Source§impl GameResultEvent
impl GameResultEvent
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 GameResultEvent
impl Clone for GameResultEvent
Source§fn clone(&self) -> GameResultEvent
fn clone(&self) -> GameResultEvent
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 GameResultEvent
impl Debug for GameResultEvent
Source§impl<'de> Deserialize<'de> for GameResultEvent
impl<'de> Deserialize<'de> for GameResultEvent
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 GameResultEvent
impl PartialEq for GameResultEvent
Source§fn eq(&self, other: &GameResultEvent) -> bool
fn eq(&self, other: &GameResultEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GameResultEvent
impl Serialize for GameResultEvent
impl StructuralPartialEq for GameResultEvent
Auto Trait Implementations§
impl Freeze for GameResultEvent
impl RefUnwindSafe for GameResultEvent
impl Send for GameResultEvent
impl Sync for GameResultEvent
impl Unpin for GameResultEvent
impl UnsafeUnpin for GameResultEvent
impl UnwindSafe for GameResultEvent
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