#[non_exhaustive]pub struct RestRow {Show 24 fields
pub inst_type: String,
pub inst_id: String,
pub inst_family: String,
pub ccy: String,
pub ord_id: String,
pub cl_ord_id: String,
pub algo_id: String,
pub algo_cl_ord_id: String,
pub quote_id: String,
pub req_id: String,
pub product_id: String,
pub row_type: String,
pub state: String,
pub status: String,
pub side: String,
pub amt: NumberString,
pub sz: NumberString,
pub px: NumberString,
pub rate: NumberString,
pub bal: NumberString,
pub avail_bal: NumberString,
pub ts: NumberString,
pub s_code: String,
pub s_msg: String,
}Expand description
A broad OKX response row for low-frequency endpoints.
OKX edge endpoints often return sparse, feature-dependent objects. Fields default when absent so deserialization remains forward-compatible.
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.
inst_id: StringInstrument ID.
inst_family: StringInstrument family.
ccy: StringCurrency code.
ord_id: StringOrder ID.
cl_ord_id: StringClient order ID.
algo_id: StringAlgo order ID.
algo_cl_ord_id: StringClient algo order ID.
quote_id: StringQuote ID.
req_id: StringRequest ID.
product_id: StringProduct ID.
row_type: StringOperation type.
state: StringState or status.
status: StringStatus.
side: StringSide.
amt: NumberStringAmount.
sz: NumberStringSize.
px: NumberStringPrice.
rate: NumberStringRate.
bal: NumberStringBalance.
avail_bal: NumberStringAvailable balance.
ts: NumberStringTimestamp.
s_code: StringSuccess code.
s_msg: StringSuccess message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RestRow
impl<'de> Deserialize<'de> for RestRow
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 RestRow
impl RefUnwindSafe for RestRow
impl Send for RestRow
impl Sync for RestRow
impl Unpin for RestRow
impl UnsafeUnpin for RestRow
impl UnwindSafe for RestRow
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