Struct prelate_rs::query::GlobalGamesQuery
source · pub struct GlobalGamesQuery { /* private fields */ }
Expand description
Constructs a query for the /games
endpoint.
Implementations§
source§impl GlobalGamesQuery
impl GlobalGamesQuery
sourcepub fn with_leaderboard(self, value: impl Into<Option<Vec<GameKind>>>) -> Self
pub fn with_leaderboard(self, value: impl Into<Option<Vec<GameKind>>>) -> Self
Filter by game kind category.
NOTE: this is named leaderboard
but uses the GameKind
enum.
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.
sourcepub fn with_profile_ids(self, value: impl Into<Option<Vec<ProfileId>>>) -> Self
pub fn with_profile_ids(self, value: impl Into<Option<Vec<ProfileId>>>) -> Self
Filter over a list of profile IDs.
sourcepub fn with_since(self, value: impl Into<Option<DateTime<Utc>>>) -> Self
pub fn with_since(self, value: impl Into<Option<DateTime<Utc>>>) -> Self
Filter by time played since a specific date.
sourcepub fn with_order(self, value: impl Into<Option<GamesOrder>>) -> Self
pub fn with_order(self, value: impl Into<Option<GamesOrder>>) -> Self
Filter by time played since a specific date.
Trait Implementations§
source§impl Default for GlobalGamesQuery
impl Default for GlobalGamesQuery
source§fn default() -> GlobalGamesQuery
fn default() -> GlobalGamesQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GlobalGamesQuery
impl RefUnwindSafe for GlobalGamesQuery
impl Send for GlobalGamesQuery
impl Sync for GlobalGamesQuery
impl Unpin for GlobalGamesQuery
impl UnwindSafe for GlobalGamesQuery
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