pub struct Outcome {
pub name: String,
pub price: f64,
pub point: Option<f64>,
pub description: Option<String>,
pub link: Option<String>,
pub multiplier: Option<f64>,
}Expand description
An outcome/selection within a market.
Fields§
§name: StringName of the outcome (team name, “Over”, “Under”, etc.).
price: f64The odds price.
point: Option<f64>Point spread or total line (for spreads/totals markets).
description: Option<String>Description for player props or alternate markets.
link: Option<String>Bet link URL if available.
multiplier: Option<f64>DFS multiplier if requested.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Outcome
impl<'de> Deserialize<'de> for Outcome
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 Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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