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