#[non_exhaustive]pub struct BlockQuoteUpdate {Show 14 fields
pub quote_id: String,
pub cl_quote_id: String,
pub rfq_id: String,
pub cl_rfq_id: String,
pub tag: String,
pub trader_code: String,
pub quote_side: String,
pub valid_until: NumberString,
pub legs: Vec<BlockLeg>,
pub state: String,
pub reason: String,
pub c_time: NumberString,
pub u_time: NumberString,
pub extra: ExtraFields,
}Expand description
Block-trading quotes channel row.
OKX docs: https://www.okx.com/docs-v5/en/#block-trading-websocket-quotes-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.quote_id: StringOKX-assigned quote ID.
cl_quote_id: StringClient-supplied quote ID (empty for Taker).
rfq_id: StringRFQ ID being responded to.
cl_rfq_id: StringClient-supplied RFQ ID (empty for Maker).
tag: StringQuote tag.
trader_code: StringMaker’s anonymized trader code.
quote_side: StringQuote side from the maker’s perspective: buy or sell.
valid_until: NumberStringTime until which this quote is valid (Unix milliseconds).
legs: Vec<BlockLeg>Legs that make up this quote.
state: StringQuote state.
Documented values: active, canceled, filled, expired, failed.
reason: StringReason for the current state (e.g., mmp_canceled).
c_time: NumberStringQuote creation time (Unix milliseconds).
u_time: NumberStringLast update time (Unix milliseconds).
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for BlockQuoteUpdate
impl Clone for BlockQuoteUpdate
Source§fn clone(&self) -> BlockQuoteUpdate
fn clone(&self) -> BlockQuoteUpdate
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 BlockQuoteUpdate
impl Debug for BlockQuoteUpdate
Source§impl Default for BlockQuoteUpdate
impl Default for BlockQuoteUpdate
Source§fn default() -> BlockQuoteUpdate
fn default() -> BlockQuoteUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockQuoteUpdate
impl<'de> Deserialize<'de> for BlockQuoteUpdate
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 BlockQuoteUpdate
impl RefUnwindSafe for BlockQuoteUpdate
impl Send for BlockQuoteUpdate
impl Sync for BlockQuoteUpdate
impl Unpin for BlockQuoteUpdate
impl UnsafeUnpin for BlockQuoteUpdate
impl UnwindSafe for BlockQuoteUpdate
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