pub struct GammaEvent {Show 19 fields
pub id: String,
pub slug: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub start_date: Option<String>,
pub end_date: Option<String>,
pub active: Option<bool>,
pub closed: Option<bool>,
pub archived: Option<bool>,
pub markets: Vec<GammaMarket>,
pub liquidity: Option<f64>,
pub volume: Option<f64>,
pub open_interest: Option<f64>,
pub volume_24hr: Option<f64>,
pub category: Option<String>,
pub neg_risk: Option<bool>,
pub neg_risk_market_id: Option<String>,
pub featured: Option<bool>,
pub game_id: Option<u64>,
}Expand description
An event response from the Gamma API GET /events.
Events are parent containers grouping related markets (e.g., an election
event contains multiple outcome markets). Each event’s markets array
contains full GammaMarket objects.
Fields§
§id: String§slug: Option<String>§title: Option<String>§description: Option<String>§start_date: Option<String>§end_date: Option<String>§active: Option<bool>§closed: Option<bool>§archived: Option<bool>§markets: Vec<GammaMarket>§liquidity: Option<f64>Event-level liquidity.
volume: Option<f64>Event-level volume.
open_interest: Option<f64>Event-level open interest.
volume_24hr: Option<f64>24-hour event volume.
category: Option<String>Event category.
neg_risk: Option<bool>Whether event uses neg-risk.
neg_risk_market_id: Option<String>Neg-risk market ID.
featured: Option<bool>Whether event is featured.
game_id: Option<u64>Game ID for sport markets. null and -1 both mean “no game” and
surface as None. Reference shape:
https://github.com/Polymarket/rs-clob-client/blob/main/src/gamma/types/response.rs.
Trait Implementations§
Source§impl Clone for GammaEvent
impl Clone for GammaEvent
Source§fn clone(&self) -> GammaEvent
fn clone(&self) -> GammaEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 GammaEvent
impl Debug for GammaEvent
Source§impl<'de> Deserialize<'de> for GammaEvent
impl<'de> Deserialize<'de> for GammaEvent
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 GammaEvent
impl RefUnwindSafe for GammaEvent
impl Send for GammaEvent
impl Sync for GammaEvent
impl Unpin for GammaEvent
impl UnsafeUnpin for GammaEvent
impl UnwindSafe for GammaEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more