pub struct UserPersonalBestsBuilder<'a> { /* private fields */ }
Expand description
Builder for UserPersonalBests
.
Implementations§
Source§impl<'a> UserPersonalBestsBuilder<'a>
impl<'a> UserPersonalBestsBuilder<'a>
Sourcepub fn id<VALUE: Into<UserId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<UserId<'a>>>(&mut self, value: VALUE) -> &mut Self
User ID or username. Using an ID is recommended over a username, because usernames can change.
Sourcepub fn top<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn top<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
Only return PBs with a place equal or better than top
(e.g. a value of 1
will return all world records for the given user)
Sourcepub fn series<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn series<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Series ID or abbreviation. When given, restricts results to that games and romhacks in that series.
Sourcepub fn game<VALUE: Into<GameId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn game<VALUE: Into<GameId<'a>>>(&mut self, value: VALUE) -> &mut Self
Game ID or abbreviation. When given, restricts results to that game
Sourcepub fn build(
&self,
) -> Result<UserPersonalBests<'a>, UserPersonalBestsBuilderError>
pub fn build( &self, ) -> Result<UserPersonalBests<'a>, UserPersonalBestsBuilderError>
Trait Implementations§
Source§impl<'a> Clone for UserPersonalBestsBuilder<'a>
impl<'a> Clone for UserPersonalBestsBuilder<'a>
Source§fn clone(&self) -> UserPersonalBestsBuilder<'a>
fn clone(&self) -> UserPersonalBestsBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for UserPersonalBestsBuilder<'a>
impl<'a> RefUnwindSafe for UserPersonalBestsBuilder<'a>
impl<'a> Send for UserPersonalBestsBuilder<'a>
impl<'a> Sync for UserPersonalBestsBuilder<'a>
impl<'a> Unpin for UserPersonalBestsBuilder<'a>
impl<'a> UnwindSafe for UserPersonalBestsBuilder<'a>
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