pub enum MatchEventKind {
Goal,
OwnGoal,
PenaltyGoal,
PenaltyMiss,
YellowCard,
SecondYellow,
RedCard,
Substitution,
Var,
Other,
}Expand description
The kind of in-match event on a timeline.
Variants§
Goal
A goal from open play.
OwnGoal
An own goal.
PenaltyGoal
A goal from a penalty.
PenaltyMiss
A missed/saved penalty.
YellowCard
A yellow card.
SecondYellow
A second yellow (booking leading to a red).
RedCard
A straight red card.
Substitution
A substitution.
Var
A VAR decision.
Other
Anything else.
Trait Implementations§
Source§impl Clone for MatchEventKind
impl Clone for MatchEventKind
Source§fn clone(&self) -> MatchEventKind
fn clone(&self) -> MatchEventKind
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 moreimpl Copy for MatchEventKind
Source§impl Debug for MatchEventKind
impl Debug for MatchEventKind
Source§impl<'de> Deserialize<'de> for MatchEventKind
impl<'de> Deserialize<'de> for MatchEventKind
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 MatchEventKind
Source§impl PartialEq for MatchEventKind
impl PartialEq for MatchEventKind
Source§fn eq(&self, other: &MatchEventKind) -> bool
fn eq(&self, other: &MatchEventKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MatchEventKind
impl Serialize for MatchEventKind
impl StructuralPartialEq for MatchEventKind
Auto Trait Implementations§
impl Freeze for MatchEventKind
impl RefUnwindSafe for MatchEventKind
impl Send for MatchEventKind
impl Sync for MatchEventKind
impl Unpin for MatchEventKind
impl UnsafeUnpin for MatchEventKind
impl UnwindSafe for MatchEventKind
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