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 UserIdentifier<'_>
impl UserIdentifier<'_>
Sourcepub async fn get_matches(
&self,
params: Option<&GetMatchesParams>,
) -> Result<Box<[MatchInfo]>>
pub async fn get_matches( &self, params: Option<&GetMatchesParams>, ) -> Result<Box<[MatchInfo]>>
GET the user’s matches by identifier using given params
Source§impl UserIdentifier<'_>
impl UserIdentifier<'_>
Sourcepub async fn get_user(&self, params: Option<&GetUserParams>) -> Result<UserInfo>
pub async fn get_user(&self, params: Option<&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>
Source§fn clone(&self) -> UserIdentifier<'a>
fn clone(&self) -> UserIdentifier<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for UserIdentifier<'a>
impl<'a> Debug for UserIdentifier<'a>
Source§impl Display for UserIdentifier<'_>
impl Display 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> Copy for UserIdentifier<'a>
impl<'a> Eq for UserIdentifier<'a>
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> 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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.