pub struct SwapRouteResponse {
pub args: SwapRouteInput,
pub elapsed_time: i64,
pub route_info: Map<String, Value>,
pub serialized_tx: String,
}Expand description
SwapRouteResponse
JSON schema
{
"type": "object",
"required": [
"args",
"elapsedTime",
"routeInfo",
"serializedTx"
],
"properties": {
"args": {
"description": "DTO.DEX.SWAP.ARGS",
"allOf": [
{
"$ref": "#/components/schemas/SwapRouteInput"
}
]
},
"elapsedTime": {
"description": "DTO.DEX.SWAP.ELAPSED_TIME",
"examples": [
245
],
"type": "integer",
"format": "int64"
},
"routeInfo": {
"description": "DTO.DEX.SWAP.ROUTE_INFO",
"examples": [
{
"inAmount": "1000000000",
"outAmount": "985000000",
"priceImpact": "0.15",
"route": [
"USDC",
"SOL"
]
}
],
"type": "object"
},
"serializedTx": {
"description": "DTO.DEX.SWAP.SERIALIZED_TX",
"examples": [
"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
],
"type": "string"
}
}
}Fields§
§args: SwapRouteInputDTO.DEX.SWAP.ARGS
elapsed_time: i64DTO.DEX.SWAP.ELAPSED_TIME
route_info: Map<String, Value>DTO.DEX.SWAP.ROUTE_INFO
serialized_tx: StringDTO.DEX.SWAP.SERIALIZED_TX
Implementations§
Source§impl SwapRouteResponse
impl SwapRouteResponse
pub fn builder() -> SwapRouteResponse
Trait Implementations§
Source§impl Clone for SwapRouteResponse
impl Clone for SwapRouteResponse
Source§fn clone(&self) -> SwapRouteResponse
fn clone(&self) -> SwapRouteResponse
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 SwapRouteResponse
impl Debug for SwapRouteResponse
Source§impl<'de> Deserialize<'de> for SwapRouteResponse
impl<'de> Deserialize<'de> for SwapRouteResponse
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
Source§impl From<&SwapRouteResponse> for SwapRouteResponse
impl From<&SwapRouteResponse> for SwapRouteResponse
Source§fn from(value: &SwapRouteResponse) -> Self
fn from(value: &SwapRouteResponse) -> Self
Converts to this type from the input type.
Source§impl From<SwapRouteResponse> for SwapRouteResponse
impl From<SwapRouteResponse> for SwapRouteResponse
Source§fn from(value: SwapRouteResponse) -> Self
fn from(value: SwapRouteResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for SwapRouteResponse
impl Serialize for SwapRouteResponse
Source§impl TryFrom<SwapRouteResponse> for SwapRouteResponse
impl TryFrom<SwapRouteResponse> for SwapRouteResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SwapRouteResponse) -> Result<Self, ConversionError>
fn try_from(value: SwapRouteResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SwapRouteResponse
impl RefUnwindSafe for SwapRouteResponse
impl Send for SwapRouteResponse
impl Sync for SwapRouteResponse
impl Unpin for SwapRouteResponse
impl UnwindSafe for SwapRouteResponse
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