Event

Struct Event 

Source
pub struct Event {
Show 81 fields pub id: String, pub ticker: Option<String>, pub slug: Option<String>, pub title: Option<String>, pub subtitle: Option<String>, pub description: Option<String>, pub resolution_source: Option<String>, pub start_date: Option<String>, pub creation_date: Option<String>, pub end_date: Option<String>, pub image: Option<String>, pub icon: Option<String>, pub start_date_iso: Option<String>, pub end_date_iso: Option<String>, pub active: Option<bool>, pub closed: Option<bool>, pub archived: Option<bool>, pub new: Option<bool>, pub featured: Option<bool>, pub restricted: Option<bool>, pub liquidity: Option<f64>, pub open_interest: Option<f64>, pub sort_by: Option<String>, pub category: Option<String>, pub subcategory: Option<String>, pub is_template: Option<bool>, pub template_variables: Option<String>, pub published_at: Option<String>, pub created_by: Option<String>, pub updated_by: Option<String>, pub created_at: Option<String>, pub updated_at: Option<String>, pub comments_enabled: Option<bool>, pub competitive: Option<f64>, pub volume_24hr: Option<f64>, pub volume_1wk: Option<f64>, pub volume_1mo: Option<f64>, pub volume_1yr: Option<f64>, pub featured_image: Option<String>, pub disqus_thread: Option<String>, pub parent_event: Option<String>, pub enable_order_book: Option<bool>, pub liquidity_amm: Option<f64>, pub liquidity_clob: Option<f64>, pub neg_risk: Option<bool>, pub neg_risk_market_id: Option<String>, pub neg_risk_fee_bips: Option<i64>, pub sub_events: Vec<String>, pub markets: Vec<Market>, pub tags: Vec<Tag>, pub series: Vec<SeriesInfo>, pub cyom: Option<bool>, pub closed_time: Option<String>, pub show_all_outcomes: Option<bool>, pub show_market_images: Option<bool>, pub automatically_resolved: Option<bool>, pub enalbe_neg_risk: Option<bool>, pub automatically_active: Option<bool>, pub event_date: Option<String>, pub start_time: Option<String>, pub event_week: Option<i64>, pub series_slug: Option<String>, pub score: Option<String>, pub elapsed: Option<String>, pub period: Option<String>, pub live: Option<bool>, pub ended: Option<bool>, pub finished_timestamp: Option<String>, pub gmp_chart_mode: Option<String>, pub tweet_count: Option<i64>, pub featured_order: Option<i64>, pub estimate_value: Option<bool>, pub cant_estimate: Option<bool>, pub spreads_main_line: Option<f64>, pub totals_main_line: Option<f64>, pub carousel_map: Option<String>, pub pending_deployment: Option<bool>, pub deploying: Option<bool>, pub deploying_timestamp: Option<String>, pub schedule_deployment_timestamp: Option<String>, pub game_status: Option<String>,
}

Fields§

§id: String§ticker: Option<String>§slug: Option<String>§title: Option<String>§subtitle: Option<String>§description: Option<String>§resolution_source: Option<String>§start_date: Option<String>§creation_date: Option<String>§end_date: Option<String>§image: Option<String>§icon: Option<String>§start_date_iso: Option<String>§end_date_iso: Option<String>§active: Option<bool>§closed: Option<bool>§archived: Option<bool>§new: Option<bool>§featured: Option<bool>§restricted: Option<bool>§liquidity: Option<f64>§open_interest: Option<f64>§sort_by: Option<String>§category: Option<String>§subcategory: Option<String>§is_template: Option<bool>§template_variables: Option<String>§published_at: Option<String>§created_by: Option<String>§updated_by: Option<String>§created_at: Option<String>§updated_at: Option<String>§comments_enabled: Option<bool>§competitive: Option<f64>§volume_24hr: Option<f64>§volume_1wk: Option<f64>§volume_1mo: Option<f64>§volume_1yr: Option<f64>§featured_image: Option<String>§disqus_thread: Option<String>§parent_event: Option<String>§enable_order_book: Option<bool>§liquidity_amm: Option<f64>§liquidity_clob: Option<f64>§neg_risk: Option<bool>§neg_risk_market_id: Option<String>§neg_risk_fee_bips: Option<i64>§sub_events: Vec<String>§markets: Vec<Market>§tags: Vec<Tag>§series: Vec<SeriesInfo>§cyom: Option<bool>§closed_time: Option<String>§show_all_outcomes: Option<bool>§show_market_images: Option<bool>§automatically_resolved: Option<bool>§enalbe_neg_risk: Option<bool>§automatically_active: Option<bool>§event_date: Option<String>§start_time: Option<String>§event_week: Option<i64>§series_slug: Option<String>§score: Option<String>§elapsed: Option<String>§period: Option<String>§live: Option<bool>§ended: Option<bool>§finished_timestamp: Option<String>§gmp_chart_mode: Option<String>§tweet_count: Option<i64>§featured_order: Option<i64>§estimate_value: Option<bool>§cant_estimate: Option<bool>§spreads_main_line: Option<f64>§totals_main_line: Option<f64>§carousel_map: Option<String>§pending_deployment: Option<bool>§deploying: Option<bool>§deploying_timestamp: Option<String>§schedule_deployment_timestamp: Option<String>§game_status: Option<String>

Trait Implementations§

Source§

impl Clone for Event

Source§

fn clone(&self) -> Event

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Event

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Event

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Event

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,