#[non_exhaustive]pub enum UnderlyingType {
Coin,
Index,
Premarket,
Commodity,
Equity,
CnEquity,
HkEquity,
KrEquity,
Fx,
Other(String),
}Expand description
What a contract’s underlying is, from exchangeInfo. The values seen on
2026-10-07; Binance’s docs give no list.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Coin
Index
Premarket
Commodity
Equity
CnEquity
HkEquity
KrEquity
Fx
Other(String)
A value this version of the SDK does not recognise, kept verbatim. Sending it in a request passes the string through unchanged.
Build it with from_wire or FromStr, never directly:
Other holding a known spelling serialises as the named variant
does, but does not compare equal to it.
Implementations§
Source§impl UnderlyingType
impl UnderlyingType
Trait Implementations§
Source§impl Clone for UnderlyingType
impl Clone for UnderlyingType
Source§impl Debug for UnderlyingType
impl Debug for UnderlyingType
Source§impl<'de> Deserialize<'de> for UnderlyingType
impl<'de> Deserialize<'de> for UnderlyingType
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for UnderlyingType
impl Display for UnderlyingType
impl Eq for UnderlyingType
Source§impl FromStr for UnderlyingType
impl FromStr for UnderlyingType
Source§impl Hash for UnderlyingType
impl Hash for UnderlyingType
Source§impl PartialEq for UnderlyingType
impl PartialEq for UnderlyingType
Source§impl Serialize for UnderlyingType
impl Serialize for UnderlyingType
impl StructuralPartialEq for UnderlyingType
Auto Trait Implementations§
impl Freeze for UnderlyingType
impl RefUnwindSafe for UnderlyingType
impl Send for UnderlyingType
impl Sync for UnderlyingType
impl Unpin for UnderlyingType
impl UnsafeUnpin for UnderlyingType
impl UnwindSafe for UnderlyingType
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.