pub struct DexQuoteResponse {
pub amount_out: Option<String>,
pub current_price: Option<String>,
pub execution_price: Option<String>,
pub fee: Option<String>,
pub min_amount_out: Option<String>,
pub price_impact: Option<String>,
}Expand description
DexQuoteResponse
JSON schema
{
"type": "object",
"properties": {
"amountOut": {
"description": "DTO.DEX.QUOTE.AMOUNT_OUT",
"examples": [
"1000000000"
],
"type": "string"
},
"currentPrice": {
"description": "DTO.DEX.QUOTE.CURRENT_PRICE",
"type": "string"
},
"executionPrice": {
"description": "DTO.DEX.QUOTE.EXECUTION_PRICE",
"type": "string"
},
"fee": {
"description": "DTO.DEX.QUOTE.FEE",
"examples": [
"1000000000"
],
"type": "string"
},
"minAmountOut": {
"description": "DTO.DEX.QUOTE.MIN_AMOUNT_OUT",
"type": "string"
},
"priceImpact": {
"description": "DTO.DEX.QUOTE.PRICE_IMPACT",
"examples": [
"10.5"
],
"type": "string"
}
}
}Fields§
§amount_out: Option<String>DTO.DEX.QUOTE.AMOUNT_OUT
current_price: Option<String>DTO.DEX.QUOTE.CURRENT_PRICE
execution_price: Option<String>DTO.DEX.QUOTE.EXECUTION_PRICE
fee: Option<String>DTO.DEX.QUOTE.FEE
min_amount_out: Option<String>DTO.DEX.QUOTE.MIN_AMOUNT_OUT
price_impact: Option<String>DTO.DEX.QUOTE.PRICE_IMPACT
Implementations§
Source§impl DexQuoteResponse
impl DexQuoteResponse
pub fn builder() -> DexQuoteResponse
Trait Implementations§
Source§impl Clone for DexQuoteResponse
impl Clone for DexQuoteResponse
Source§fn clone(&self) -> DexQuoteResponse
fn clone(&self) -> DexQuoteResponse
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 DexQuoteResponse
impl Debug for DexQuoteResponse
Source§impl Default for DexQuoteResponse
impl Default for DexQuoteResponse
Source§impl<'de> Deserialize<'de> for DexQuoteResponse
impl<'de> Deserialize<'de> for DexQuoteResponse
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<&DexQuoteResponse> for DexQuoteResponse
impl From<&DexQuoteResponse> for DexQuoteResponse
Source§fn from(value: &DexQuoteResponse) -> Self
fn from(value: &DexQuoteResponse) -> Self
Converts to this type from the input type.
Source§impl From<DexQuoteResponse> for DexQuoteResponse
impl From<DexQuoteResponse> for DexQuoteResponse
Source§fn from(value: DexQuoteResponse) -> Self
fn from(value: DexQuoteResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for DexQuoteResponse
impl Serialize for DexQuoteResponse
Source§impl TryFrom<DexQuoteResponse> for DexQuoteResponse
impl TryFrom<DexQuoteResponse> for DexQuoteResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DexQuoteResponse) -> Result<Self, ConversionError>
fn try_from(value: DexQuoteResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DexQuoteResponse
impl RefUnwindSafe for DexQuoteResponse
impl Send for DexQuoteResponse
impl Sync for DexQuoteResponse
impl Unpin for DexQuoteResponse
impl UnwindSafe for DexQuoteResponse
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