pub struct Quote<'a> { /* private fields */ }Expand description
Builder for Client::quote
Implementations§
Source§impl<'a> Quote<'a>
impl<'a> Quote<'a>
pub fn new(client: &'a Client) -> Self
pub fn chain<V>(self, value: V) -> Selfwhere
V: TryInto<ChainSymbol>,
pub fn amount<V>(self, value: V) -> Self
pub fn dex<V>(self, value: V) -> Self
pub fn exact_in<V>(self, value: V) -> Self
pub fn input_mint<V>(self, value: V) -> Self
pub fn output_mint<V>(self, value: V) -> Self
pub fn slippage<V>(self, value: V) -> Self
Sourcepub async fn send(self) -> Result<ResponseValue<DexQuoteResponse>, Error<()>>
pub async fn send(self) -> Result<ResponseValue<DexQuoteResponse>, Error<()>>
Sends a GET request to /v1/dex/{chain}/quote
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Quote<'a>
impl<'a> !RefUnwindSafe for Quote<'a>
impl<'a> Send for Quote<'a>
impl<'a> Sync for Quote<'a>
impl<'a> Unpin for Quote<'a>
impl<'a> !UnwindSafe for Quote<'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