pub struct MatchInfo { /* private fields */ }Expand description
Match info
Implementations§
Source§impl MatchInfo
impl MatchInfo
Sourcepub async fn get_recent(
params: Option<&GetRecentMatchesParams<'_>>,
) -> Result<Box<[Self]>>
pub async fn get_recent( params: Option<&GetRecentMatchesParams<'_>>, ) -> Result<Box<[Self]>>
GET recent matches given params
Source§impl MatchInfo
impl MatchInfo
Sourcepub fn category(&self) -> MatchCategory
pub fn category(&self) -> MatchCategory
SpeedrunIGT category of the match
Sourcepub fn players(&self) -> &[UserProfile]
pub fn players(&self) -> &[UserProfile]
Users participating in the match
Sourcepub fn spectators(&self) -> &[UserProfile]
pub fn spectators(&self) -> &[UserProfile]
Users spectating the match
Sourcepub fn seed_info(&self) -> &MatchSeedInfo
pub fn seed_info(&self) -> &MatchSeedInfo
Seed info
Sourcepub fn result(&self) -> &MatchOutcome
pub fn result(&self) -> &MatchOutcome
The outcome of the match
Sourcepub fn elo_updates(&self) -> &[MatchEloUpdate]
pub fn elo_updates(&self) -> &[MatchEloUpdate]
The updates to the participants’ ELOs
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MatchInfo
impl<'de> Deserialize<'de> for MatchInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MatchInfo
impl StructuralPartialEq for MatchInfo
Auto Trait Implementations§
impl Freeze for MatchInfo
impl RefUnwindSafe for MatchInfo
impl Send for MatchInfo
impl Sync for MatchInfo
impl Unpin for MatchInfo
impl UnwindSafe for MatchInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.