pub struct RankingRequest { /* private fields */ }Expand description
Request builder for a rankings query.
Implementations§
Source§impl RankingRequest
impl RankingRequest
Sourcepub fn window(self, window: RankingWindow) -> Self
pub fn window(self, window: RankingWindow) -> Self
Set the ranking window. An unrecognized value is rejected upstream with
{"error": "invalid request"}, which is why this is an enum.
Sourcepub async fn send(self) -> Result<Vec<RankingEntry>, DataApiError>
pub async fn send(self) -> Result<Vec<RankingEntry>, DataApiError>
Execute the request.
Auto Trait Implementations§
impl !RefUnwindSafe for RankingRequest
impl !UnwindSafe for RankingRequest
impl Freeze for RankingRequest
impl Send for RankingRequest
impl Sync for RankingRequest
impl Unpin for RankingRequest
impl UnsafeUnpin for RankingRequest
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