pub struct GetTopTraders<'a> { /* private fields */ }Expand description
Builder for Client::get_top_traders
Implementations§
Source§impl<'a> GetTopTraders<'a>
impl<'a> GetTopTraders<'a>
pub fn new(client: &'a Client) -> Self
pub fn chain<V>(self, value: V) -> Selfwhere
V: TryInto<ChainSymbol>,
pub fn cursor<V>(self, value: V) -> Self
pub fn direction<V>(self, value: V) -> Selfwhere
V: TryInto<GetTopTradersDirection>,
pub fn limit<V>(self, value: V) -> Selfwhere
V: TryInto<NonZeroU64>,
pub fn sort_by<V>(self, value: V) -> Selfwhere
V: TryInto<GetTopTradersSortBy>,
pub fn sort_type<V>(self, value: V) -> Selfwhere
V: TryInto<GetTopTradersSortType>,
pub fn time_frame<V>(self, value: V) -> Selfwhere
V: TryInto<GetTopTradersTimeFrame>,
pub fn token_address<V>(self, value: V) -> Self
Sourcepub async fn send(self) -> Result<ResponseValue<TopTradersPage>, Error<()>>
pub async fn send(self) -> Result<ResponseValue<TopTradersPage>, Error<()>>
Sends a GET request to /v1/trade/{chain}/top-traders
Trait Implementations§
Source§impl<'a> Clone for GetTopTraders<'a>
impl<'a> Clone for GetTopTraders<'a>
Source§fn clone(&self) -> GetTopTraders<'a>
fn clone(&self) -> GetTopTraders<'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 GetTopTraders<'a>
impl<'a> !RefUnwindSafe for GetTopTraders<'a>
impl<'a> Send for GetTopTraders<'a>
impl<'a> Sync for GetTopTraders<'a>
impl<'a> Unpin for GetTopTraders<'a>
impl<'a> !UnwindSafe for GetTopTraders<'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