pub struct DraftHumanEvent { /* private fields */ }Expand description
Human draft pick events.
Parsed from Draft.Notify and EventPlayerDraftMakePick.
Implementations§
Source§impl DraftHumanEvent
impl DraftHumanEvent
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 DraftHumanEvent
impl Clone for DraftHumanEvent
Source§fn clone(&self) -> DraftHumanEvent
fn clone(&self) -> DraftHumanEvent
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 DraftHumanEvent
impl Debug for DraftHumanEvent
Source§impl<'de> Deserialize<'de> for DraftHumanEvent
impl<'de> Deserialize<'de> for DraftHumanEvent
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 DraftHumanEvent
impl PartialEq for DraftHumanEvent
Source§fn eq(&self, other: &DraftHumanEvent) -> bool
fn eq(&self, other: &DraftHumanEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DraftHumanEvent
impl Serialize for DraftHumanEvent
impl StructuralPartialEq for DraftHumanEvent
Auto Trait Implementations§
impl Freeze for DraftHumanEvent
impl RefUnwindSafe for DraftHumanEvent
impl Send for DraftHumanEvent
impl Sync for DraftHumanEvent
impl Unpin for DraftHumanEvent
impl UnsafeUnpin for DraftHumanEvent
impl UnwindSafe for DraftHumanEvent
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