pub struct PredictionEvent {Show 14 fields
pub begin_at: Option<String>,
pub category: String,
pub close_condition: String,
pub event_id: String,
pub is_active: bool,
pub is_live: bool,
pub live_score: Option<Value>,
pub markets: Option<Vec<PredictionMarket>>,
pub metadata: Option<PredictionEventMetadata>,
pub rules_pdf: String,
pub subcategory: String,
pub tags: Option<Vec<String>>,
pub volume24hr: Option<String>,
pub volume_usd: String,
}Fields§
§begin_at: Option<String>Unix timestamp (seconds) when the event begins
category: StringThe category for the event, allowed values: all, crypto, sports, politics, esports, culture, economics, tech
close_condition: StringClose condition for the event
event_id: StringApplication-level identifier
is_active: boolWhether the event is active (listed on events)
is_live: boolWhether the event is currently live
live_score: Option<Value>Live score data for sports events; null when no score is available
markets: Option<Vec<PredictionMarket>>§metadata: Option<PredictionEventMetadata>§rules_pdf: StringDocument to full rules for the event
subcategory: StringThe subcategory for the event
Tags associated with the event
volume24hr: Option<String>Rolling 24-hour volume in micro USD
volume_usd: StringTotal volume for the event in micro USD
Trait Implementations§
Source§impl Clone for PredictionEvent
impl Clone for PredictionEvent
Source§fn clone(&self) -> PredictionEvent
fn clone(&self) -> PredictionEvent
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 PredictionEvent
impl Debug for PredictionEvent
Source§impl<'de> Deserialize<'de> for PredictionEvent
impl<'de> Deserialize<'de> for PredictionEvent
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 PredictionEvent
impl RefUnwindSafe for PredictionEvent
impl Send for PredictionEvent
impl Sync for PredictionEvent
impl Unpin for PredictionEvent
impl UnsafeUnpin for PredictionEvent
impl UnwindSafe for PredictionEvent
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