pub struct MatchEvent {
pub minute: Option<u16>,
pub stoppage: Option<u16>,
pub kind: MatchEventKind,
pub team_id: Option<String>,
pub player: Option<String>,
pub detail: Option<String>,
}Expand description
A single timeline event in a match.
Fields§
§minute: Option<u16>Match minute, when known.
stoppage: Option<u16>Added/stoppage-time minutes beyond minute, when known.
kind: MatchEventKindWhat happened.
team_id: Option<String>The team this event belongs to (provider team id), when known.
player: Option<String>Primary player involved (scorer, booked player, player coming on).
detail: Option<String>Free-form detail (assist, reason, player going off, etc.).
Trait Implementations§
Source§impl Clone for MatchEvent
impl Clone for MatchEvent
Source§fn clone(&self) -> MatchEvent
fn clone(&self) -> MatchEvent
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 MatchEvent
impl Debug for MatchEvent
Source§impl<'de> Deserialize<'de> for MatchEvent
impl<'de> Deserialize<'de> for MatchEvent
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
impl Eq for MatchEvent
Source§impl PartialEq for MatchEvent
impl PartialEq for MatchEvent
Source§fn eq(&self, other: &MatchEvent) -> bool
fn eq(&self, other: &MatchEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MatchEvent
impl Serialize for MatchEvent
impl StructuralPartialEq for MatchEvent
Auto Trait Implementations§
impl Freeze for MatchEvent
impl RefUnwindSafe for MatchEvent
impl Send for MatchEvent
impl Sync for MatchEvent
impl Unpin for MatchEvent
impl UnsafeUnpin for MatchEvent
impl UnwindSafe for MatchEvent
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