#[non_exhaustive]pub struct StructureBlockTradeUpdate {Show 14 fields
pub block_td_id: String,
pub rfq_id: String,
pub cl_rfq_id: String,
pub quote_id: String,
pub cl_quote_id: String,
pub tag: String,
pub is_successful: bool,
pub error_code: String,
pub t_trader_code: String,
pub m_trader_code: String,
pub legs: Vec<BlockLeg>,
pub acct_alloc: Vec<Value>,
pub c_time: NumberString,
pub extra: ExtraFields,
}Expand description
Structure-block-trade channel row (private struc-block-trades).
OKX docs: https://www.okx.com/docs-v5/en/#block-trading-websocket-structure-block-trades-channel
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.block_td_id: StringBlock trade ID that groups one or more legs.
rfq_id: StringOKX-assigned RFQ ID.
cl_rfq_id: StringClient-supplied RFQ ID.
quote_id: StringOKX-assigned quote ID.
cl_quote_id: StringClient-supplied quote ID.
tag: StringTag associated with this trade.
is_successful: boolWhether the trade execution was successful.
error_code: StringError code when is_successful is false; empty otherwise.
t_trader_code: StringTaker’s anonymized trader code.
m_trader_code: StringMaker’s anonymized trader code.
legs: Vec<BlockLeg>Legs that make up this block trade.
acct_alloc: Vec<Value>Account allocation details for this trade.
c_time: NumberStringTrade creation time (Unix milliseconds).
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for StructureBlockTradeUpdate
impl Clone for StructureBlockTradeUpdate
Source§fn clone(&self) -> StructureBlockTradeUpdate
fn clone(&self) -> StructureBlockTradeUpdate
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 StructureBlockTradeUpdate
impl Debug for StructureBlockTradeUpdate
Source§impl Default for StructureBlockTradeUpdate
impl Default for StructureBlockTradeUpdate
Source§fn default() -> StructureBlockTradeUpdate
fn default() -> StructureBlockTradeUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StructureBlockTradeUpdate
impl<'de> Deserialize<'de> for StructureBlockTradeUpdate
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
Auto Trait Implementations§
impl Freeze for StructureBlockTradeUpdate
impl RefUnwindSafe for StructureBlockTradeUpdate
impl Send for StructureBlockTradeUpdate
impl Sync for StructureBlockTradeUpdate
impl Unpin for StructureBlockTradeUpdate
impl UnsafeUnpin for StructureBlockTradeUpdate
impl UnwindSafe for StructureBlockTradeUpdate
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