Skip to main content

ValMatchV1

Struct ValMatchV1 

Source
pub struct ValMatchV1<'a> { /* private fields */ }
Expand description

ValMatchV1 endpoints handle, accessed by calling val_match_v1() on a RiotApi instance.

§Riot Developer API Reference

val-match-v1

Note: this struct is automatically generated.

Implementations§

Source§

impl<'a> ValMatchV1<'a>

Source

pub fn get_match( &self, route: ValPlatformRoute, match_id: &str, ) -> impl Future<Output = Result<Option<Match>>> + 'a

Get match by id

§Parameters
  • route - Route to query.
  • match_id (required, in path)
§Riot Developer API Reference

val-match-v1.getMatch

Note: this method is automatically generated.

Source

pub fn try_get_match( &self, min_capacity: f32, route: ValPlatformRoute, match_id: &str, ) -> impl Future<Output = TryRequestResult<Option<Match>>> + 'a

Variation that checks for minimum capacity before making the request, returning None if insufficent capacity See get_match for detailed documentation

§Parameters
  • min_capacity - Minimum capacity required as a float from 1.0 (all capacity) to 0.0 (no capacity) excluding burst
  • route - Route to query.
  • match_id (required, in path)
§Riot Developer API Reference

val-match-v1.getMatch

Note: this method is automatically generated.

Source

pub fn get_matchlist( &self, route: ValPlatformRoute, puuid: &str, ) -> impl Future<Output = Result<Matchlist>> + 'a

Get matchlist for games played by puuid

§Parameters
  • route - Route to query.
  • puuid (required, in path)
§Riot Developer API Reference

val-match-v1.getMatchlist

Note: this method is automatically generated.

Source

pub fn try_get_matchlist( &self, min_capacity: f32, route: ValPlatformRoute, puuid: &str, ) -> impl Future<Output = TryRequestResult<Matchlist>> + 'a

Variation that checks for minimum capacity before making the request, returning None if insufficent capacity See get_matchlist for detailed documentation

§Parameters
  • min_capacity - Minimum capacity required as a float from 1.0 (all capacity) to 0.0 (no capacity) excluding burst
  • route - Route to query.
  • puuid (required, in path)
§Riot Developer API Reference

val-match-v1.getMatchlist

Note: this method is automatically generated.

Source

pub fn get_recent( &self, route: ValPlatformRoute, queue: &str, ) -> impl Future<Output = Result<RecentMatches>> + 'a

Get recent matches

§Implementation Notes

Returns a list of match ids that have completed in the last 10 minutes for live regions and 12 hours for the esports routing value. NA/LATAM/BR share a match history deployment. As such, recent matches will return a combined list of matches from those three regions. Requests are load balanced so you may see some inconsistencies as matches are added/removed from the list.

§Parameters
  • route - Route to query.
  • queue (required, in path)
§Riot Developer API Reference

val-match-v1.getRecent

Note: this method is automatically generated.

Source

pub fn try_get_recent( &self, min_capacity: f32, route: ValPlatformRoute, queue: &str, ) -> impl Future<Output = TryRequestResult<RecentMatches>> + 'a

Variation that checks for minimum capacity before making the request, returning None if insufficent capacity See get_recent for detailed documentation

§Parameters
  • min_capacity - Minimum capacity required as a float from 1.0 (all capacity) to 0.0 (no capacity) excluding burst
  • route - Route to query.
  • queue (required, in path)
§Riot Developer API Reference

val-match-v1.getRecent

Note: this method is automatically generated.

Auto Trait Implementations§

§

impl<'a> Freeze for ValMatchV1<'a>

§

impl<'a> !RefUnwindSafe for ValMatchV1<'a>

§

impl<'a> Send for ValMatchV1<'a>

§

impl<'a> Sync for ValMatchV1<'a>

§

impl<'a> Unpin for ValMatchV1<'a>

§

impl<'a> UnsafeUnpin for ValMatchV1<'a>

§

impl<'a> !UnwindSafe for ValMatchV1<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T