pub struct RouteResponse {
pub amount_out: String,
pub min_amount_out: Option<String>,
pub tx: TransactionData,
pub route: Vec<RouteStep>,
pub gas: Option<String>,
pub price_impact: Option<f64>,
pub created_at: Option<u64>,
}Expand description
Route response with transaction data
Fields§
§amount_out: StringEstimated output amount
min_amount_out: Option<String>Minimum output amount after slippage
tx: TransactionDataTransaction data
route: Vec<RouteStep>Route steps
gas: Option<String>Estimated gas
price_impact: Option<f64>Price impact percentage (can be 0 integer or 0.0 float)
created_at: Option<u64>Created timestamp
Trait Implementations§
Source§impl Clone for RouteResponse
impl Clone for RouteResponse
Source§fn clone(&self) -> RouteResponse
fn clone(&self) -> RouteResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 RouteResponse
impl Debug for RouteResponse
Source§impl<'de> Deserialize<'de> for RouteResponse
impl<'de> Deserialize<'de> for RouteResponse
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 RouteResponse
impl RefUnwindSafe for RouteResponse
impl Send for RouteResponse
impl Sync for RouteResponse
impl Unpin for RouteResponse
impl UnwindSafe for RouteResponse
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