Struct prelate_rs::query::ProfileGamesQuery
source · pub struct ProfileGamesQuery { /* private fields */ }
Expand description
Constructs a query for the /players/{profile_id}/games
endpoint.
Implementations§
source§impl ProfileGamesQuery
impl ProfileGamesQuery
sourcepub fn with_game_kind(self, value: impl Into<Option<Vec<GameKind>>>) -> Self
pub fn with_game_kind(self, value: impl Into<Option<Vec<GameKind>>>) -> Self
Filter by Leaderboard
.
sourcepub fn with_leaderboard(
self,
value: impl Into<Option<Vec<Leaderboard>>>
) -> Self
pub fn with_leaderboard( self, value: impl Into<Option<Vec<Leaderboard>>> ) -> Self
Filter by Leaderboard
. Same as GameKind
but supports Leaderboard::RmSolo
and Leaderboard::RmTeam
.
sourcepub fn with_opponent_profile_id(
self,
value: impl Into<Option<ProfileId>>
) -> Self
pub fn with_opponent_profile_id( self, value: impl Into<Option<ProfileId>> ) -> Self
Filter over an opponent’s profile ID.
Trait Implementations§
source§impl Default for ProfileGamesQuery
impl Default for ProfileGamesQuery
source§fn default() -> ProfileGamesQuery
fn default() -> ProfileGamesQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProfileGamesQuery
impl RefUnwindSafe for ProfileGamesQuery
impl Send for ProfileGamesQuery
impl Sync for ProfileGamesQuery
impl Unpin for ProfileGamesQuery
impl UnwindSafe for ProfileGamesQuery
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