pub struct Quote {Show 13 fields
pub via: AccessType,
pub id: String,
pub type: Type,
pub quote_asset_id: String,
pub base_asset_id: String,
pub base_amount: String,
pub quote_amount: String,
pub price_impact: Option<f64>,
pub quote_min_amount: Option<String>,
pub execution_steps: Option<Vec<ExecutionStepDetails>>,
pub general_fees: Option<Vec<Fee>>,
pub side: Side,
pub expires_at: String,
}Fields§
§via: AccessType§id: String§type: TypeIndicates this is an indicative quote
quote_asset_id: String§base_asset_id: String§base_amount: String§quote_amount: String§price_impact: Option<f64>§quote_min_amount: Option<String>§execution_steps: Option<Vec<ExecutionStepDetails>>§general_fees: Option<Vec<Fee>>§side: SideSide of the order
expires_at: StringISO 8601 timestamp of the expiration time of the quote.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Quote
impl<'de> Deserialize<'de> for Quote
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
impl StructuralPartialEq for Quote
Auto Trait Implementations§
impl Freeze for Quote
impl RefUnwindSafe for Quote
impl Send for Quote
impl Sync for Quote
impl Unpin for Quote
impl UnwindSafe for Quote
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