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,
}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 (for example, “Yes” or “No”); None when the
venue payload omits side specs.
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.
Trait Implementations§
Source§impl Clone for HyperliquidOutcomeMetadata
impl Clone for HyperliquidOutcomeMetadata
Source§fn clone(&self) -> HyperliquidOutcomeMetadata
fn clone(&self) -> HyperliquidOutcomeMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HyperliquidOutcomeMetadata
impl PartialEq for HyperliquidOutcomeMetadata
Source§fn eq(&self, other: &HyperliquidOutcomeMetadata) -> bool
fn eq(&self, other: &HyperliquidOutcomeMetadata) -> bool
Tests for
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§
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,
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>
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