[−][src]Struct riven::MatchV4
MatchV4 endpoints. This struct is automatically generated.
Official API Reference
Methods
impl<'a> MatchV4<'a>
[src]
pub fn get_match_ids_by_tournament_code(
&self,
region: Region,
tournament_code: &str
) -> impl Future<Output = Result<Option<Vec<i64>>, Error>> + 'a
[src]
&self,
region: Region,
tournament_code: &str
) -> impl Future<Output = Result<Option<Vec<i64>>, Error>> + 'a
Get match IDs by tournament code.
Official API Reference
https://developer.riotgames.com/api-methods/#match-v4/GET_getMatchIdsByTournamentCode
Parameters
region
- Region to query.tournamentCode
- The tournament code.
pub fn get_match(
&self,
region: Region,
match_id: i64
) -> impl Future<Output = Result<Option<Match>, Error>> + 'a
[src]
&self,
region: Region,
match_id: i64
) -> impl Future<Output = Result<Option<Match>, Error>> + 'a
Get match by match ID.
Official API Reference
https://developer.riotgames.com/api-methods/#match-v4/GET_getMatch
Parameters
region
- Region to query.matchId
- The match ID.
pub fn get_match_by_tournament_code(
&self,
region: Region,
match_id: i64,
tournament_code: &str
) -> impl Future<Output = Result<Option<Match>, Error>> + 'a
[src]
&self,
region: Region,
match_id: i64,
tournament_code: &str
) -> impl Future<Output = Result<Option<Match>, Error>> + 'a
Get match by match ID and tournament code.
Official API Reference
https://developer.riotgames.com/api-methods/#match-v4/GET_getMatchByTournamentCode
Parameters
region
- Region to query.tournamentCode
- The tournament code.matchId
- The match ID.
pub fn get_matchlist(
&self,
region: Region,
encrypted_account_id: &str,
champion: Option<Vec<i32>>,
queue: Option<Vec<i32>>,
season: Option<Vec<i32>>,
end_time: Option<i64>,
begin_time: Option<i64>,
end_index: Option<i32>,
begin_index: Option<i32>
) -> impl Future<Output = Result<Option<Matchlist>, Error>> + 'a
[src]
&self,
region: Region,
encrypted_account_id: &str,
champion: Option<Vec<i32>>,
queue: Option<Vec<i32>>,
season: Option<Vec<i32>>,
end_time: Option<i64>,
begin_time: Option<i64>,
end_index: Option<i32>,
begin_index: Option<i32>
) -> impl Future<Output = Result<Option<Matchlist>, Error>> + 'a
Get matchlist for games played on given account ID and platform ID and filtered using given filter parameters, if any.
Implementation Notes
A number of optional parameters are provided for filtering. It is up to the caller to ensure that the combination of filter parameters provided is valid for the requested account, otherwise, no matches may be returned.
If beginIndex is specified, but not endIndex, then endIndex defaults to beginIndex+100. If endIndex is specified, but not beginIndex, then beginIndex defaults to 0. If both are specified, then endIndex must be greater than beginIndex. The maximum range allowed is 100, otherwise a 400 error code is returned.
If beginTime is specified, but not endTime, then endTime defaults to the the current unix timestamp in milliseconds (the maximum time range limitation is not observed in this specific case). If endTime is specified, but not beginTime, then beginTime defaults to the start of the account's match history returning a 400 due to the maximum time range limitation. If both are specified, then endTime should be greater than beginTime. The maximum time range allowed is one week, otherwise a 400 error code is returned.
Official API Reference
https://developer.riotgames.com/api-methods/#match-v4/GET_getMatchlist
Parameters
region
- Region to query.encryptedAccountId
- The account ID.champion
(optional) - Set of champion IDs for filtering the matchlist.queue
(optional) - Set of queue IDs for filtering the matchlist.season
(optional) - Set of season IDs for filtering the matchlist.endTime
(optional) - The end time to use for filtering matchlist specified as epoch milliseconds. If beginTime is specified, but not endTime, then endTime defaults to the the current unix timestamp in milliseconds (the maximum time range limitation is not observed in this specific case). If endTime is specified, but not beginTime, then beginTime defaults to the start of the account's match history returning a 400 due to the maximum time range limitation. If both are specified, then endTime should be greater than beginTime. The maximum time range allowed is one week, otherwise a 400 error code is returned.beginTime
(optional) - The begin time to use for filtering matchlist specified as epoch milliseconds. If beginTime is specified, but not endTime, then endTime defaults to the the current unix timestamp in milliseconds (the maximum time range limitation is not observed in this specific case). If endTime is specified, but not beginTime, then beginTime defaults to the start of the account's match history returning a 400 due to the maximum time range limitation. If both are specified, then endTime should be greater than beginTime. The maximum time range allowed is one week, otherwise a 400 error code is returned.endIndex
(optional) - The end index to use for filtering matchlist. If beginIndex is specified, but not endIndex, then endIndex defaults to beginIndex+100. If endIndex is specified, but not beginIndex, then beginIndex defaults to 0. If both are specified, then endIndex must be greater than beginIndex. The maximum range allowed is 100, otherwise a 400 error code is returned.beginIndex
(optional) - The begin index to use for filtering matchlist. If beginIndex is specified, but not endIndex, then endIndex defaults to beginIndex+100. If endIndex is specified, but not beginIndex, then beginIndex defaults to 0. If both are specified, then endIndex must be greater than beginIndex. The maximum range allowed is 100, otherwise a 400 error code is returned.
pub fn get_match_timeline(
&self,
region: Region,
match_id: i64
) -> impl Future<Output = Result<Option<MatchTimeline>, Error>> + 'a
[src]
&self,
region: Region,
match_id: i64
) -> impl Future<Output = Result<Option<MatchTimeline>, Error>> + 'a
Get match timeline by match ID.
Implementation Notes
Not all matches have timeline data.
Official API Reference
https://developer.riotgames.com/api-methods/#match-v4/GET_getMatchTimeline
Parameters
region
- Region to query.matchId
- The match ID.
Auto Trait Implementations
impl<'a> Send for MatchV4<'a>
impl<'a> Sync for MatchV4<'a>
impl<'a> Unpin for MatchV4<'a>
impl<'a> !UnwindSafe for MatchV4<'a>
impl<'a> !RefUnwindSafe for MatchV4<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,