pub enum MatchStatus {
Scheduled,
Live {
minute: Option<u16>,
detail: Option<String>,
},
HalfTime,
FullTime,
AfterExtraTime,
Penalties,
Postponed,
Canceled,
Unknown,
}Expand description
The live/finished state of a match.
Variants§
Scheduled
Not started yet.
Live
In play. minute is the displayed clock minute when known.
Fields
HalfTime
Half-time interval.
FullTime
Finished in regulation.
AfterExtraTime
Finished after extra time.
Penalties
Decided on penalties.
Postponed
Postponed.
Canceled
Cancelled.
Unknown
Unknown / unmapped status.
Implementations§
Source§impl MatchStatus
impl MatchStatus
Trait Implementations§
Source§impl Clone for MatchStatus
impl Clone for MatchStatus
Source§fn clone(&self) -> MatchStatus
fn clone(&self) -> MatchStatus
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 MatchStatus
impl Debug for MatchStatus
Source§impl<'de> Deserialize<'de> for MatchStatus
impl<'de> Deserialize<'de> for MatchStatus
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 MatchStatus
Source§impl PartialEq for MatchStatus
impl PartialEq for MatchStatus
Source§fn eq(&self, other: &MatchStatus) -> bool
fn eq(&self, other: &MatchStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MatchStatus
impl Serialize for MatchStatus
impl StructuralPartialEq for MatchStatus
Auto Trait Implementations§
impl Freeze for MatchStatus
impl RefUnwindSafe for MatchStatus
impl Send for MatchStatus
impl Sync for MatchStatus
impl Unpin for MatchStatus
impl UnsafeUnpin for MatchStatus
impl UnwindSafe for MatchStatus
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