pub struct GetEvmSwapPrice<'a> { /* private fields */ }
Expand description
Builder for [Client::get_evm_swap_price
]
[`Client::get_evm_swap_price`]: super::Client::get_evm_swap_price
Implementations§
Source§impl<'a> GetEvmSwapPrice<'a>
impl<'a> GetEvmSwapPrice<'a>
pub fn new(client: &'a Client) -> Self
pub fn from_amount<V>(self, value: V) -> Selfwhere
V: TryInto<FromAmount>,
pub fn from_token<V>(self, value: V) -> Self
pub fn gas_price<V>(self, value: V) -> Self
pub fn network<V>(self, value: V) -> Selfwhere
V: TryInto<EvmSwapsNetwork>,
pub fn signer_address<V>(self, value: V) -> Selfwhere
V: TryInto<SignerAddress>,
pub fn slippage_bps<V>(self, value: V) -> Selfwhere
V: TryInto<SlippageBps>,
pub fn taker<V>(self, value: V) -> Self
pub fn to_token<V>(self, value: V) -> Self
Sourcepub async fn send(
self,
) -> Result<ResponseValue<GetSwapPriceResponseWrapper>, Error<Error>>
pub async fn send( self, ) -> Result<ResponseValue<GetSwapPriceResponseWrapper>, Error<Error>>
Sends a GET
request to /v2/evm/swaps/quote
Trait Implementations§
Source§impl<'a> Clone for GetEvmSwapPrice<'a>
impl<'a> Clone for GetEvmSwapPrice<'a>
Source§fn clone(&self) -> GetEvmSwapPrice<'a>
fn clone(&self) -> GetEvmSwapPrice<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for GetEvmSwapPrice<'a>
impl<'a> !RefUnwindSafe for GetEvmSwapPrice<'a>
impl<'a> Send for GetEvmSwapPrice<'a>
impl<'a> Sync for GetEvmSwapPrice<'a>
impl<'a> Unpin for GetEvmSwapPrice<'a>
impl<'a> !UnwindSafe for GetEvmSwapPrice<'a>
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