pub struct HyperliquidOutcomeMetadata {
pub outcome_index: u32,
pub outcome_side: u8,
pub market_name: Ustr,
pub side_name: Option<Ustr>,
pub description: Option<Ustr>,
pub activation_ns: UnixNanos,
pub expiration_ns: UnixNanos,
pub info: Option<Params>,
}Expand description
Outcome-specific metadata carried on HyperliquidInstrumentDef for HIP-4
binary outcome side tokens.
The venue’s outcomeMeta payload is partial today (no precision or
expiry fields), so unknown values are left as defaults until real venue
payloads are available.
Fields§
§outcome_index: u32HIP-4 outcome index (outcome field from outcomeMeta).
outcome_side: u8Side digit (0 or 1).
market_name: UstrOutcome market name (for example, “BTC daily”).
side_name: Option<Ustr>Side specification name. Set from the venue’s sideSpecs entry when
present, otherwise falls back to the canonical HIP-4 labels ("Yes"
for side 0, "No" for side 1).
description: Option<Ustr>Venue-supplied description.
activation_ns: UnixNanosActivation timestamp; 0 when the venue payload does not expose it.
expiration_ns: UnixNanosExpiration timestamp; 0 when the venue payload does not expose it.
info: Option<Params>Structured metadata surfaced as BinaryOption.info; see the Hyperliquid
integration guide for the field layout.
Trait Implementations§
Source§impl Clone for HyperliquidOutcomeMetadata
impl Clone for HyperliquidOutcomeMetadata
Source§fn clone(&self) -> HyperliquidOutcomeMetadata
fn clone(&self) -> HyperliquidOutcomeMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HyperliquidOutcomeMetadata
impl Debug for HyperliquidOutcomeMetadata
Source§impl<'de> Deserialize<'de> for HyperliquidOutcomeMetadata
impl<'de> Deserialize<'de> for HyperliquidOutcomeMetadata
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>,
Source§impl PartialEq for HyperliquidOutcomeMetadata
impl PartialEq for HyperliquidOutcomeMetadata
Source§fn eq(&self, other: &HyperliquidOutcomeMetadata) -> bool
fn eq(&self, other: &HyperliquidOutcomeMetadata) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HyperliquidOutcomeMetadata
Auto Trait Implementations§
impl Freeze for HyperliquidOutcomeMetadata
impl RefUnwindSafe for HyperliquidOutcomeMetadata
impl Send for HyperliquidOutcomeMetadata
impl Sync for HyperliquidOutcomeMetadata
impl Unpin for HyperliquidOutcomeMetadata
impl UnsafeUnpin for HyperliquidOutcomeMetadata
impl UnwindSafe for HyperliquidOutcomeMetadata
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
impl<'de, T> BorrowedRpcObject<'de> for T
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>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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