pub enum UserIdentifier<'a> {
Uuid(Uuid),
Nickname(&'a str),
DiscordId(u64),
}Expand description
User identifier for API user lookup
Variants§
Uuid(Uuid)
User’s minecraft UUID
Nickname(&'a str)
User’s minecraft IGN
DiscordId(u64)
User’s discord snowflake id
Implementations§
Source§impl<'a> UserIdentifier<'a>
impl<'a> UserIdentifier<'a>
Sourcepub async fn get_matches(
&self,
params: impl Into<Option<&'a GetMatchesParams>>,
) -> Result<Box<[MatchInfo]>>
pub async fn get_matches( &self, params: impl Into<Option<&'a GetMatchesParams>>, ) -> Result<Box<[MatchInfo]>>
GET the user’s matches by identifier using given params
Source§impl<'a> UserIdentifier<'a>
impl<'a> UserIdentifier<'a>
Sourcepub async fn get_user(
&self,
params: impl Into<Option<&'a GetUserParams>>,
) -> Result<UserInfo>
pub async fn get_user( &self, params: impl Into<Option<&'a GetUserParams>>, ) -> Result<UserInfo>
GET the user by identifier using given params
Sourcepub async fn get_user_all_seasons(&self) -> Result<AllSeasonUserInfo>
pub async fn get_user_all_seasons(&self) -> Result<AllSeasonUserInfo>
GET the user’s info with data from all seasons
Trait Implementations§
Source§impl<'a> Clone for UserIdentifier<'a>
impl<'a> Clone for UserIdentifier<'a>
impl<'a> Copy for UserIdentifier<'a>
Source§impl<'a> Debug for UserIdentifier<'a>
impl<'a> Debug for UserIdentifier<'a>
Source§impl Display for UserIdentifier<'_>
impl Display for UserIdentifier<'_>
impl<'a> Eq for UserIdentifier<'a>
Source§impl<'a> From<&'a str> for UserIdentifier<'a>
impl<'a> From<&'a str> for UserIdentifier<'a>
Source§impl From<NonZero<u64>> for UserIdentifier<'_>
impl From<NonZero<u64>> for UserIdentifier<'_>
Source§fn from(value: NonZeroU64) -> Self
fn from(value: NonZeroU64) -> Self
Converts to this type from the input type.
Source§impl From<Uuid> for UserIdentifier<'_>
impl From<Uuid> for UserIdentifier<'_>
Source§impl From<u64> for UserIdentifier<'_>
impl From<u64> for UserIdentifier<'_>
Source§impl<'a> PartialEq for UserIdentifier<'a>
impl<'a> PartialEq for UserIdentifier<'a>
Source§impl Serialize for UserIdentifier<'_>
impl Serialize for UserIdentifier<'_>
impl<'a> StructuralPartialEq for UserIdentifier<'a>
Auto Trait Implementations§
impl<'a> Freeze for UserIdentifier<'a>
impl<'a> RefUnwindSafe for UserIdentifier<'a>
impl<'a> Send for UserIdentifier<'a>
impl<'a> Sync for UserIdentifier<'a>
impl<'a> Unpin for UserIdentifier<'a>
impl<'a> UnsafeUnpin for UserIdentifier<'a>
impl<'a> UnwindSafe for UserIdentifier<'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
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.