#[non_exhaustive]pub struct BlockRfqUpdate {Show 15 fields
pub rfq_id: String,
pub cl_rfq_id: String,
pub tag: String,
pub trader_code: String,
pub valid_until: NumberString,
pub counterparties: Vec<String>,
pub legs: Vec<BlockLeg>,
pub allow_partial_execution: bool,
pub state: String,
pub flow_type: String,
pub group_id: String,
pub acct_alloc: Vec<Value>,
pub c_time: NumberString,
pub u_time: NumberString,
pub extra: ExtraFields,
}Expand description
Block-trading rfqs channel row.
OKX docs: https://www.okx.com/docs-v5/en/#block-trading-websocket-rfqs-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.rfq_id: StringOKX-assigned RFQ ID.
cl_rfq_id: StringClient-supplied RFQ ID (empty for Maker).
tag: StringRFQ tag.
trader_code: StringTaker’s anonymized trader code.
valid_until: NumberStringTime until which this RFQ is valid (Unix milliseconds).
counterparties: Vec<String>List of counterparty trader codes invited to quote.
legs: Vec<BlockLeg>Legs that make up this RFQ.
allow_partial_execution: boolWhether partial execution is allowed on this RFQ.
state: StringRFQ state.
Documented values: active, canceled, filled, expired, traded_away, failed.
flow_type: StringFlow type; only applicable to Makers (empty for Takers).
group_id: StringGroup ID when this RFQ belongs to an RFQ group.
acct_alloc: Vec<Value>Account allocation details (taker only).
c_time: NumberStringRFQ creation time (Unix milliseconds).
u_time: NumberStringLast update time (Unix milliseconds).
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for BlockRfqUpdate
impl Clone for BlockRfqUpdate
Source§fn clone(&self) -> BlockRfqUpdate
fn clone(&self) -> BlockRfqUpdate
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 BlockRfqUpdate
impl Debug for BlockRfqUpdate
Source§impl Default for BlockRfqUpdate
impl Default for BlockRfqUpdate
Source§fn default() -> BlockRfqUpdate
fn default() -> BlockRfqUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockRfqUpdate
impl<'de> Deserialize<'de> for BlockRfqUpdate
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 BlockRfqUpdate
impl RefUnwindSafe for BlockRfqUpdate
impl Send for BlockRfqUpdate
impl Sync for BlockRfqUpdate
impl Unpin for BlockRfqUpdate
impl UnsafeUnpin for BlockRfqUpdate
impl UnwindSafe for BlockRfqUpdate
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