pub struct GetTraderGainersLosers<'a> { /* private fields */ }Expand description
Builder for Client::get_trader_gainers_losers
Implementations§
Source§impl<'a> GetTraderGainersLosers<'a>
impl<'a> GetTraderGainersLosers<'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<PageDirection>,
pub fn limit<V>(self, value: V) -> Self
pub fn resolution<V>(self, value: V) -> Selfwhere
V: TryInto<TraderPnlResolution>,
pub fn sort_type<V>(self, value: V) -> Selfwhere
V: TryInto<SortDirection>,
Sourcepub async fn send(
self,
) -> Result<ResponseValue<PageResponseTraderGainersLosersItem>, Error<()>>
pub async fn send( self, ) -> Result<ResponseValue<PageResponseTraderGainersLosersItem>, Error<()>>
Sends a GET request to /v2/trade/{chain}/trader-gainers-losers
Trait Implementations§
Source§impl<'a> Clone for GetTraderGainersLosers<'a>
impl<'a> Clone for GetTraderGainersLosers<'a>
Source§fn clone(&self) -> GetTraderGainersLosers<'a>
fn clone(&self) -> GetTraderGainersLosers<'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 GetTraderGainersLosers<'a>
impl<'a> !RefUnwindSafe for GetTraderGainersLosers<'a>
impl<'a> Send for GetTraderGainersLosers<'a>
impl<'a> Sync for GetTraderGainersLosers<'a>
impl<'a> Unpin for GetTraderGainersLosers<'a>
impl<'a> UnsafeUnpin for GetTraderGainersLosers<'a>
impl<'a> !UnwindSafe for GetTraderGainersLosers<'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