#[non_exhaustive]pub struct MassCancelRequest {
pub inst_type: String,
pub inst_family: String,
pub lock_interval: Option<String>,
}Expand description
MMP mass-cancel request body (mass-cancel).
Only OPTION in Portfolio Margin mode is supported by OKX.
OKX docs: https://www.okx.com/docs-v5/en/#order-book-trading-trade-ws-mass-cancel-order
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.inst_type: StringInstrument type. OKX currently requires OPTION.
inst_family: StringInstrument family, e.g. BTC-USD.
lock_interval: Option<String>Lock interval in milliseconds, range 0..=10000.
Implementations§
Trait Implementations§
Source§impl Clone for MassCancelRequest
impl Clone for MassCancelRequest
Source§fn clone(&self) -> MassCancelRequest
fn clone(&self) -> MassCancelRequest
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 MassCancelRequest
impl Debug for MassCancelRequest
impl Eq for MassCancelRequest
Source§impl PartialEq for MassCancelRequest
impl PartialEq for MassCancelRequest
Source§impl Serialize for MassCancelRequest
impl Serialize for MassCancelRequest
impl StructuralPartialEq for MassCancelRequest
Auto Trait Implementations§
impl Freeze for MassCancelRequest
impl RefUnwindSafe for MassCancelRequest
impl Send for MassCancelRequest
impl Sync for MassCancelRequest
impl Unpin for MassCancelRequest
impl UnsafeUnpin for MassCancelRequest
impl UnwindSafe for MassCancelRequest
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