pub struct GetLeaderboard { /* private fields */ }Expand description
Request builder for getting the trader leaderboard
Implementations§
Source§impl GetLeaderboard
impl GetLeaderboard
Sourcepub fn category(self, category: LeaderboardCategory) -> Self
pub fn category(self, category: LeaderboardCategory) -> Self
Filter by category (default: OVERALL)
Sourcepub fn time_period(self, period: TimePeriod) -> Self
pub fn time_period(self, period: TimePeriod) -> Self
Set the aggregation time period (default: ALL)
Sourcepub fn order_by(self, order_by: LeaderboardOrderBy) -> Self
pub fn order_by(self, order_by: LeaderboardOrderBy) -> Self
Set the ordering field (default: PNL)
Sourcepub async fn send(self) -> Result<Vec<TraderRanking>, DataApiError>
pub async fn send(self) -> Result<Vec<TraderRanking>, DataApiError>
Execute the request
Auto Trait Implementations§
impl Freeze for GetLeaderboard
impl !RefUnwindSafe for GetLeaderboard
impl Send for GetLeaderboard
impl Sync for GetLeaderboard
impl Unpin for GetLeaderboard
impl UnsafeUnpin for GetLeaderboard
impl !UnwindSafe for GetLeaderboard
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