Struct riven::endpoints::SpectatorV5
source · pub struct SpectatorV5<'a> { /* private fields */ }
Expand description
SpectatorV5 endpoints handle, accessed by calling spectator_v5()
on a RiotApi
instance.
§Riot Developer API Reference
Note: this struct is automatically generated.
Implementations§
source§impl<'a> SpectatorV5<'a>
impl<'a> SpectatorV5<'a>
sourcepub fn get_current_game_info_by_puuid(
&self,
route: PlatformRoute,
encrypted_puuid: &str,
) -> impl Future<Output = Result<Option<CurrentGameInfo>>> + 'a
pub fn get_current_game_info_by_puuid( &self, route: PlatformRoute, encrypted_puuid: &str, ) -> impl Future<Output = Result<Option<CurrentGameInfo>>> + 'a
Get current game information for the given puuid.
§Parameters
route
- Route to query.encrypted_puuid
(required, in path) - The puuid of the summoner.
§Riot Developer API Reference
spectator-v5.getCurrentGameInfoByPuuid
Note: this method is automatically generated.
sourcepub fn get_featured_games(
&self,
route: PlatformRoute,
) -> impl Future<Output = Result<FeaturedGames>> + 'a
pub fn get_featured_games( &self, route: PlatformRoute, ) -> impl Future<Output = Result<FeaturedGames>> + 'a
Auto Trait Implementations§
impl<'a> Freeze for SpectatorV5<'a>
impl<'a> !RefUnwindSafe for SpectatorV5<'a>
impl<'a> Send for SpectatorV5<'a>
impl<'a> Sync for SpectatorV5<'a>
impl<'a> Unpin for SpectatorV5<'a>
impl<'a> !UnwindSafe for SpectatorV5<'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