#[non_exhaustive]pub struct RunningTotal {
pub daily_average: f64,
pub human_readable_daily_average: String,
pub human_readable_total: String,
pub languages: Vec<SummaryEntry>,
pub modified_at: Option<String>,
pub total_seconds: f64,
}Expand description
Aggregated coding totals used on the leaderboard.
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.daily_average: f64Average daily coding time in seconds.
human_readable_daily_average: StringHuman-readable average daily coding time.
human_readable_total: StringHuman-readable total coding time for the period.
languages: Vec<SummaryEntry>Top languages for this user (may be empty if privacy settings prevent disclosure).
modified_at: Option<String>ISO 8601 timestamp when this total was last computed (not always present).
total_seconds: f64Total coding seconds for the leaderboard period.
Trait Implementations§
Source§impl Clone for RunningTotal
impl Clone for RunningTotal
Source§fn clone(&self) -> RunningTotal
fn clone(&self) -> RunningTotal
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 RunningTotal
impl Debug for RunningTotal
Source§impl<'de> Deserialize<'de> for RunningTotal
impl<'de> Deserialize<'de> for RunningTotal
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 RunningTotal
impl RefUnwindSafe for RunningTotal
impl Send for RunningTotal
impl Sync for RunningTotal
impl Unpin for RunningTotal
impl UnsafeUnpin for RunningTotal
impl UnwindSafe for RunningTotal
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