pub struct Market {
pub exchange_id: Option<Ustr>,
pub market_id: Option<Ustr>,
pub outcome_type: OutcomeType,
pub outcome_name: Option<String>,
pub mechanism: Option<MarketMechanism>,
pub status: MarketStatus,
pub price: Decimal,
pub title: Option<String>,
pub description: Option<String>,
pub exchange: Option<Exchange>,
pub source_specific_data: Option<HashMap<String, Box<RawValue>>>,
}Expand description
Outcome metadata with source values retained as raw JSON.
Fields§
§exchange_id: Option<Ustr>Provider exchange identifier for this outcome.
market_id: Option<Ustr>Provider outcome identifier, retained verbatim.
outcome_type: OutcomeTypeProvider contract classification, independent of native mapping support.
outcome_name: Option<String>Provider outcome label, such as Yes or No.
mechanism: Option<MarketMechanism>Provider market mechanism label.
status: MarketStatusProvider lifecycle label; unknown labels decode as Unknown.
price: DecimalProvider-reported outcome price, decoded without floating-point conversion.
title: Option<String>Provider market title.
description: Option<String>Provider market description.
exchange: Option<Exchange>Nested exchange metadata, when supplied.
source_specific_data: Option<HashMap<String, Box<RawValue>>>Venue-specific metadata retained as raw JSON values.
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 UnsafeUnpin for Market
impl UnwindSafe for Market
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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