pub struct GetPools<'a> { /* private fields */ }Expand description
Builder for Client::get_pools
Implementations§
Source§impl<'a> GetPools<'a>
impl<'a> GetPools<'a>
pub fn new(client: &'a Client) -> Self
pub fn chain<V>(self, value: V) -> Selfwhere
V: TryInto<ChainSymbol>,
pub fn token_address<V>(self, value: V) -> Self
pub fn cursor<V>(self, value: V) -> Self
pub fn direction<V>(self, value: V) -> Selfwhere
V: TryInto<GetPoolsDirection>,
pub fn limit<V>(self, value: V) -> Selfwhere
V: TryInto<NonZeroU64>,
pub fn max_tvl_in_sol<V>(self, value: V) -> Self
pub fn max_tvl_in_usd<V>(self, value: V) -> Self
pub fn min_tvl_in_sol<V>(self, value: V) -> Self
pub fn min_tvl_in_usd<V>(self, value: V) -> Self
pub fn sort_by<V>(self, value: V) -> Selfwhere
V: TryInto<GetPoolsSortBy>,
pub fn sort_direction<V>(self, value: V) -> Selfwhere
V: TryInto<GetPoolsSortDirection>,
Sourcepub async fn send(self) -> Result<ResponseValue<DexPoolPage>, Error<()>>
pub async fn send(self) -> Result<ResponseValue<DexPoolPage>, Error<()>>
Sends a GET request to /v1/token/{chain}/{tokenAddress}/pools
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GetPools<'a>
impl<'a> !RefUnwindSafe for GetPools<'a>
impl<'a> Send for GetPools<'a>
impl<'a> Sync for GetPools<'a>
impl<'a> Unpin for GetPools<'a>
impl<'a> !UnwindSafe for GetPools<'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