pub struct Score {
pub home: u8,
pub away: u8,
pub home_pens: Option<u8>,
pub away_pens: Option<u8>,
}Expand description
The score of a match, including a penalty-shootout tally when applicable.
Fields§
§home: u8Home goals.
away: u8Away goals.
home_pens: Option<u8>Home penalty-shootout goals, when the match went to penalties.
away_pens: Option<u8>Away penalty-shootout goals, when the match went to penalties.
Trait Implementations§
impl Copy for Score
Source§impl<'de> Deserialize<'de> for Score
impl<'de> Deserialize<'de> for Score
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 Score
impl StructuralPartialEq for Score
Auto Trait Implementations§
impl Freeze for Score
impl RefUnwindSafe for Score
impl Send for Score
impl Sync for Score
impl Unpin for Score
impl UnsafeUnpin for Score
impl UnwindSafe for Score
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