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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more