pub struct Market {Show 14 fields
pub id: Option<String>,
pub question: String,
pub group_item_title: Option<String>,
pub clob_token_ids: Option<Vec<String>>,
pub outcomes: Vec<String>,
pub outcome_prices: Vec<String>,
pub volume_24hr: Option<f64>,
pub volume_total: Option<f64>,
pub active: bool,
pub closed: bool,
pub slug: Option<String>,
pub accepting_orders: bool,
pub uma_resolution_statuses: Option<String>,
pub events: Vec<MarketEventRef>,
}Fields§
§id: Option<String>§question: String§group_item_title: Option<String>Short display name for grouped markets (e.g., “400-419” for tweet count ranges)
clob_token_ids: Option<Vec<String>>§outcomes: Vec<String>§outcome_prices: Vec<String>§volume_24hr: Option<f64>§volume_total: Option<f64>§active: boolWhether the market is active (accepting new trades)
closed: boolWhether the market has been closed/resolved
slug: Option<String>Market slug for URL construction
accepting_orders: boolWhether the market is accepting orders
uma_resolution_statuses: Option<String>UMA oracle resolution statuses (JSON string like “["proposed", "disputed"]”)
events: Vec<MarketEventRef>Events this market belongs to (always 0 or 1 element)
Implementations§
Source§impl Market
impl Market
Sourcepub fn event(&self) -> Option<&MarketEventRef>
pub fn event(&self) -> Option<&MarketEventRef>
Get the event this market belongs to (markets have at most one event)
Sourcepub fn is_in_review(&self) -> bool
pub fn is_in_review(&self) -> bool
Check if market is in resolution/review process
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Market
impl<'de> Deserialize<'de> for Market
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 Market
impl RefUnwindSafe for Market
impl Send for Market
impl Sync for Market
impl Unpin for Market
impl UnwindSafe for Market
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