#[non_exhaustive]pub struct ConvertQuote {Show 13 fields
pub quote_time: NumberString,
pub ttl_ms: NumberString,
pub cl_q_req_id: String,
pub quote_id: String,
pub base_ccy: String,
pub quote_ccy: String,
pub side: OrderSide,
pub orig_rfq_sz: NumberString,
pub rfq_sz: NumberString,
pub rfq_sz_ccy: String,
pub cnvt_px: NumberString,
pub base_sz: NumberString,
pub quote_sz: NumberString,
}Expand description
A quote returned by the Convert estimate-quote endpoint.
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_time: NumberStringQuotation generation time as a Unix timestamp in milliseconds.
ttl_ms: NumberStringQuote validity period in milliseconds.
cl_q_req_id: StringClient-supplied quote request ID, when supplied.
quote_id: StringServer-assigned quote ID.
base_ccy: StringBase currency, e.g. BTC in BTC-USDT.
quote_ccy: StringQuote currency, e.g. USDT in BTC-USDT.
side: OrderSideTrade side based on the base currency.
orig_rfq_sz: NumberStringOriginal RFQ amount requested by the client.
rfq_sz: NumberStringActual RFQ amount accepted for the quote.
rfq_sz_ccy: StringCurrency in which the RFQ amount is denominated.
cnvt_px: NumberStringConversion price denominated in the quote currency.
base_sz: NumberStringQuoted amount of the base currency.
quote_sz: NumberStringQuoted amount of the quote currency.
Trait Implementations§
Source§impl Clone for ConvertQuote
impl Clone for ConvertQuote
Source§fn clone(&self) -> ConvertQuote
fn clone(&self) -> ConvertQuote
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 ConvertQuote
impl Debug for ConvertQuote
Source§impl<'de> Deserialize<'de> for ConvertQuote
impl<'de> Deserialize<'de> for ConvertQuote
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 ConvertQuote
impl RefUnwindSafe for ConvertQuote
impl Send for ConvertQuote
impl Sync for ConvertQuote
impl Unpin for ConvertQuote
impl UnsafeUnpin for ConvertQuote
impl UnwindSafe for ConvertQuote
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