pub struct CreateSwapQuoteResponseFees {
pub gas_fee: Option<TokenFee>,
pub protocol_fee: Option<TokenFee>,
}
Expand description
The estimated fees for the swap.
JSON schema
{
"description": "The estimated fees for the swap.",
"examples": [
{
"gasFee": {
"amount": "1000000000000000000",
"token": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
},
"protocolFee": {
"amount": "1000000000000000000",
"token": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"
}
}
],
"type": "object",
"required": [
"gasFee",
"protocolFee"
],
"properties": {
"gasFee": {
"description": "The estimated gas fee for the swap.",
"type": [
"object",
"null"
],
"allOf": [
{
"$ref": "#/components/schemas/TokenFee"
}
]
},
"protocolFee": {
"description": "The estimated protocol fee for the swap.",
"type": [
"object",
"null"
],
"allOf": [
{
"$ref": "#/components/schemas/TokenFee"
}
]
}
}
}
Fields§
§gas_fee: Option<TokenFee>
The estimated gas fee for the swap.
protocol_fee: Option<TokenFee>
The estimated protocol fee for the swap.
Implementations§
Trait Implementations§
Source§impl Clone for CreateSwapQuoteResponseFees
impl Clone for CreateSwapQuoteResponseFees
Source§fn clone(&self) -> CreateSwapQuoteResponseFees
fn clone(&self) -> CreateSwapQuoteResponseFees
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 CreateSwapQuoteResponseFees
impl Debug for CreateSwapQuoteResponseFees
Source§impl<'de> Deserialize<'de> for CreateSwapQuoteResponseFees
impl<'de> Deserialize<'de> for CreateSwapQuoteResponseFees
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<&CreateSwapQuoteResponseFees> for CreateSwapQuoteResponseFees
impl From<&CreateSwapQuoteResponseFees> for CreateSwapQuoteResponseFees
Source§fn from(value: &CreateSwapQuoteResponseFees) -> Self
fn from(value: &CreateSwapQuoteResponseFees) -> Self
Converts to this type from the input type.
Source§impl From<CreateSwapQuoteResponseFees> for CreateSwapQuoteResponseFees
impl From<CreateSwapQuoteResponseFees> for CreateSwapQuoteResponseFees
Source§fn from(value: CreateSwapQuoteResponseFees) -> Self
fn from(value: CreateSwapQuoteResponseFees) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CreateSwapQuoteResponseFees> for CreateSwapQuoteResponseFees
impl TryFrom<CreateSwapQuoteResponseFees> for CreateSwapQuoteResponseFees
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateSwapQuoteResponseFees) -> Result<Self, ConversionError>
fn try_from(value: CreateSwapQuoteResponseFees) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateSwapQuoteResponseFees
impl RefUnwindSafe for CreateSwapQuoteResponseFees
impl Send for CreateSwapQuoteResponseFees
impl Sync for CreateSwapQuoteResponseFees
impl Unpin for CreateSwapQuoteResponseFees
impl UnwindSafe for CreateSwapQuoteResponseFees
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