#[non_exhaustive]pub struct LeaderboardResponse {
pub current_user: Option<LeaderboardEntry>,
pub data: Vec<LeaderboardEntry>,
pub language: Option<String>,
pub modified_at: Option<String>,
pub page: u32,
pub range: Option<LeaderboardRange>,
pub timeout: u32,
pub total_pages: u32,
pub writes_only: bool,
}Expand description
Top-level envelope returned by GET /users/current/leaderboards.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.current_user: Option<LeaderboardEntry>The current authenticated user’s entry, if they appear in this page.
data: Vec<LeaderboardEntry>The leaderboard entries for this page.
language: Option<String>Language filter applied (if any).
modified_at: Option<String>ISO 8601 timestamp when the leaderboard was last updated.
The WakaTime API occasionally omits this field.
page: u32Current page number (1-based).
range: Option<LeaderboardRange>Date range this leaderboard covers.
timeout: u32Heartbeat timeout in minutes used for ranking.
total_pages: u32Total number of pages available.
writes_only: boolWhether the leaderboard is restricted to write-only accounts.
Trait Implementations§
Source§impl Clone for LeaderboardResponse
impl Clone for LeaderboardResponse
Source§fn clone(&self) -> LeaderboardResponse
fn clone(&self) -> LeaderboardResponse
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 LeaderboardResponse
impl Debug for LeaderboardResponse
Source§impl<'de> Deserialize<'de> for LeaderboardResponse
impl<'de> Deserialize<'de> for LeaderboardResponse
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
Auto Trait Implementations§
impl Freeze for LeaderboardResponse
impl RefUnwindSafe for LeaderboardResponse
impl Send for LeaderboardResponse
impl Sync for LeaderboardResponse
impl Unpin for LeaderboardResponse
impl UnsafeUnpin for LeaderboardResponse
impl UnwindSafe for LeaderboardResponse
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