pub struct Sport {
pub key: String,
pub group: String,
pub title: String,
pub description: String,
pub active: bool,
pub has_outrights: bool,
}Expand description
A sport available in the API.
Fields§
§key: StringUnique identifier for the sport (e.g., “americanfootball_nfl”).
group: StringGroup/category the sport belongs to (e.g., “American Football”).
title: StringHuman-readable title (e.g., “NFL”).
description: StringDescription of the sport.
active: boolWhether the sport is currently in season.
has_outrights: boolWhether the sport has outright/futures markets.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sport
impl<'de> Deserialize<'de> for Sport
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
Auto Trait Implementations§
impl Freeze for Sport
impl RefUnwindSafe for Sport
impl Send for Sport
impl Sync for Sport
impl Unpin for Sport
impl UnsafeUnpin for Sport
impl UnwindSafe for Sport
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