[][src]Struct screeps_api::FoundUserRank

pub struct FoundUserRank {
    pub season_id: String,
    pub user_id: String,
    pub rank: u32,
    pub raw_score: u64,
    // some fields omitted
}

Result from a lookup for a user's rank on the leaderboard.

Fields

season_id: String

The season ID which this rank is for

user_id: String

The user's ID

rank: u32

The user's rank in this season for the requested leaderboard type

The top user's rank is 0, so add one to this digit if displaying to a user.

raw_score: u64

The user's raw score for this season for the requested leaderboard type.

Trait Implementations

impl Clone for FoundUserRank[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for FoundUserRank[src]

impl Hash for FoundUserRank[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Serialize for FoundUserRank[src]

impl<'de> Deserialize<'de> for FoundUserRank[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,