pub struct LeaderboardEntry {
pub formatted_score: Option<String>,
pub formatted_score_rank: Option<String>,
pub kind: Option<String>,
pub player: Option<Player>,
pub score_rank: Option<i64>,
pub score_tag: Option<String>,
pub score_value: Option<i64>,
pub time_span: Option<String>,
pub write_timestamp_millis: Option<i64>,
}Expand description
The Leaderboard Entry resource.
This type is not used in any activity, and only used as part of another schema.
Fields§
§formatted_score: Option<String>The localized string for the numerical value of this score.
formatted_score_rank: Option<String>The localized string for the rank of this score for this leaderboard.
kind: Option<String>Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardEntry.
player: Option<Player>The player who holds this score.
score_rank: Option<i64>The rank of this score for this leaderboard.
score_tag: Option<String>Additional information about the score. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
score_value: Option<i64>The numerical value of this score.
time_span: Option<String>The time span of this high score.
write_timestamp_millis: Option<i64>The timestamp at which this score was recorded, in milliseconds since the epoch in UTC.
Trait Implementations§
Source§impl Clone for LeaderboardEntry
impl Clone for LeaderboardEntry
Source§fn clone(&self) -> LeaderboardEntry
fn clone(&self) -> LeaderboardEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LeaderboardEntry
impl Debug for LeaderboardEntry
Source§impl Default for LeaderboardEntry
impl Default for LeaderboardEntry
Source§fn default() -> LeaderboardEntry
fn default() -> LeaderboardEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LeaderboardEntry
impl<'de> Deserialize<'de> for LeaderboardEntry
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
Source§impl Serialize for LeaderboardEntry
impl Serialize for LeaderboardEntry
impl Part for LeaderboardEntry
Auto Trait Implementations§
impl Freeze for LeaderboardEntry
impl RefUnwindSafe for LeaderboardEntry
impl Send for LeaderboardEntry
impl Sync for LeaderboardEntry
impl Unpin for LeaderboardEntry
impl UnwindSafe for LeaderboardEntry
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