pub struct EventOdds {
pub id: String,
pub sport_key: String,
pub sport_title: String,
pub commence_time: DateTime<Utc>,
pub home_team: Option<String>,
pub away_team: Option<String>,
pub bookmakers: Vec<Bookmaker>,
}Expand description
An event with odds from bookmakers.
Fields§
§id: StringUnique identifier for the event.
sport_key: StringSport key this event belongs to.
sport_title: StringHuman-readable sport title.
commence_time: DateTime<Utc>When the event starts.
home_team: Option<String>Home team name (if applicable).
away_team: Option<String>Away team name (if applicable).
bookmakers: Vec<Bookmaker>List of bookmakers with their odds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventOdds
impl<'de> Deserialize<'de> for EventOdds
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 EventOdds
impl RefUnwindSafe for EventOdds
impl Send for EventOdds
impl Sync for EventOdds
impl Unpin for EventOdds
impl UnsafeUnpin for EventOdds
impl UnwindSafe for EventOdds
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