pub struct GetSwapPriceResponseFees {
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§
Source§impl GetSwapPriceResponseFees
impl GetSwapPriceResponseFees
pub fn builder() -> GetSwapPriceResponseFees
Trait Implementations§
Source§impl Clone for GetSwapPriceResponseFees
impl Clone for GetSwapPriceResponseFees
Source§fn clone(&self) -> GetSwapPriceResponseFees
fn clone(&self) -> GetSwapPriceResponseFees
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 GetSwapPriceResponseFees
impl Debug for GetSwapPriceResponseFees
Source§impl<'de> Deserialize<'de> for GetSwapPriceResponseFees
impl<'de> Deserialize<'de> for GetSwapPriceResponseFees
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<&GetSwapPriceResponseFees> for GetSwapPriceResponseFees
impl From<&GetSwapPriceResponseFees> for GetSwapPriceResponseFees
Source§fn from(value: &GetSwapPriceResponseFees) -> Self
fn from(value: &GetSwapPriceResponseFees) -> Self
Converts to this type from the input type.
Source§impl From<GetSwapPriceResponseFees> for GetSwapPriceResponseFees
impl From<GetSwapPriceResponseFees> for GetSwapPriceResponseFees
Source§fn from(value: GetSwapPriceResponseFees) -> Self
fn from(value: GetSwapPriceResponseFees) -> Self
Converts to this type from the input type.
Source§impl Serialize for GetSwapPriceResponseFees
impl Serialize for GetSwapPriceResponseFees
Source§impl TryFrom<GetSwapPriceResponseFees> for GetSwapPriceResponseFees
impl TryFrom<GetSwapPriceResponseFees> for GetSwapPriceResponseFees
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: GetSwapPriceResponseFees) -> Result<Self, ConversionError>
fn try_from(value: GetSwapPriceResponseFees) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GetSwapPriceResponseFees
impl RefUnwindSafe for GetSwapPriceResponseFees
impl Send for GetSwapPriceResponseFees
impl Sync for GetSwapPriceResponseFees
impl Unpin for GetSwapPriceResponseFees
impl UnwindSafe for GetSwapPriceResponseFees
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