#[non_exhaustive]pub struct InstrumentExt {
pub contract_type: Option<ContractType>,
pub status: Option<SymbolStatus>,
pub pair: Option<String>,
pub margin_asset: Option<String>,
pub delivery_date: Option<UnixMillis>,
pub onboard_date: Option<UnixMillis>,
pub filters: Option<Vec<Filter>>,
}Expand description
Binance’s facts about a contract, beside Instrument’s fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.contract_type: Option<ContractType>Perpetual, TradFi perpetual or a delivery contract.
status: Option<SymbolStatus>Trading, settling (delisted) and so on.
pair: Option<String>The underlying pair, BTCUSDT for BTCUSDT_261225.
margin_asset: Option<String>The margin asset.
delivery_date: Option<UnixMillis>Delivery time; far in the future for a perpetual.
onboard_date: Option<UnixMillis>Listing time.
filters: Option<Vec<Filter>>Every order filter, the ones Instrument’s fields come from
included.
Trait Implementations§
Source§impl Clone for InstrumentExt
impl Clone for InstrumentExt
Source§impl Debug for InstrumentExt
impl Debug for InstrumentExt
Source§impl Default for InstrumentExt
impl Default for InstrumentExt
Source§impl PartialEq for InstrumentExt
impl PartialEq for InstrumentExt
impl StructuralPartialEq for InstrumentExt
Auto Trait Implementations§
impl Freeze for InstrumentExt
impl RefUnwindSafe for InstrumentExt
impl Send for InstrumentExt
impl Sync for InstrumentExt
impl Unpin for InstrumentExt
impl UnsafeUnpin for InstrumentExt
impl UnwindSafe for InstrumentExt
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