pub struct ComboLeg {
pub leg_index: i64,
pub leg_position_id: Option<String>,
pub leg_condition_id: Option<String>,
pub leg_outcome_index: Option<i64>,
pub leg_outcome_label: Option<String>,
pub leg_status: Option<ComboLegStatus>,
pub leg_resolved_at: Option<String>,
pub leg_current_price: Option<String>,
pub market: Option<ComboMarket>,
}Expand description
A single leg of a combinatorial position.
Fields§
§leg_index: i64Zero-based index of this leg within the combo.
leg_position_id: Option<String>Position identifier for the leg.
leg_condition_id: Option<String>The leg market’s condition ID (distinct from the combo’s).
leg_outcome_index: Option<i64>Index of the selected outcome within the leg market.
leg_outcome_label: Option<String>Label of the selected outcome.
leg_status: Option<ComboLegStatus>Live per-leg resolution state, derived from the leg market’s on-chain payout vector.
leg_resolved_at: Option<String>RFC3339 UTC. Set once the leg’s market resolves on-chain, including
fractional resolutions that still report leg_status Open.
leg_current_price: Option<String>Live price for the leg outcome (decimal string, 0–1). "0" when no
price is available.
market: Option<ComboMarket>Market metadata for the leg.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ComboLeg
impl<'de> Deserialize<'de> for ComboLeg
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 ComboLeg
impl RefUnwindSafe for ComboLeg
impl Send for ComboLeg
impl Sync for ComboLeg
impl Unpin for ComboLeg
impl UnsafeUnpin for ComboLeg
impl UnwindSafe for ComboLeg
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