pub struct Quote {
pub id: String,
pub quote_type: String,
pub tool: String,
pub tool_details: Option<ToolDetails>,
pub action: Action,
pub estimate: Estimate,
pub transaction_request: Option<TransactionRequest>,
pub included_steps: Vec<Step>,
pub integrator: Option<String>,
}Expand description
Quote response containing the best route
Fields§
§id: StringUnique quote ID
quote_type: StringType of the quote (e.g., “lifi”)
tool: StringTool used (bridge/exchange name)
tool_details: Option<ToolDetails>Tool details
action: ActionAction details
estimate: EstimateEstimate of the swap/bridge
transaction_request: Option<TransactionRequest>Transaction request to execute
included_steps: Vec<Step>Included steps
integrator: Option<String>Integrator
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
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