pub struct RlStats(/* private fields */);
Expand description
A client for the RocketLeagueStats api.
Implementations§
Source§impl RlStats
impl RlStats
pub fn new<K>(api_key: K) -> Result<Self, Error>
pub fn get_platforms(&self) -> Result<Vec<Platform>, Error>
pub fn get_seasons(&self) -> Result<Vec<Season>, Error>
pub fn get_playlists(&self) -> Result<Vec<Playlist>, Error>
pub fn get_tiers(&self) -> Result<Vec<Tier>, Error>
pub fn get_player( &self, unique_id: &str, platform_id: i32, ) -> Result<Player, Error>
Sourcepub fn search_players(
&self,
display_name: &str,
page: u32,
) -> Result<SearchResponse, Error>
pub fn search_players( &self, display_name: &str, page: u32, ) -> Result<SearchResponse, Error>
Searches rocketleaguestats’ player database, not Rocket League’s.
Sourcepub fn batch_players(
&self,
players: Vec<BatchPlayer>,
) -> Result<Vec<Player>, Error>
pub fn batch_players( &self, players: Vec<BatchPlayer>, ) -> Result<Vec<Player>, Error>
Retrieve more player data faster than you would otherwise be able to.
The max batch size is 10. Players that are not found will simply be excluded from the result.
pub fn get_ranked_leaderboard( &self, playlist_id: i32, ) -> Result<Vec<Player>, Error>
pub fn get_stat_leaderboard(&self, ty: &str) -> Result<Vec<Player>, Error>
Auto Trait Implementations§
impl Freeze for RlStats
impl !RefUnwindSafe for RlStats
impl Send for RlStats
impl Sync for RlStats
impl Unpin for RlStats
impl !UnwindSafe for RlStats
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