pub struct SummaryEntry {
pub digital: String,
pub hours: u32,
pub minutes: u32,
pub name: String,
pub percent: f64,
pub seconds: u32,
pub text: String,
pub total_seconds: f64,
}Expand description
A single time-breakdown entry (language, project, editor, OS, etc.).
Fields§
§digital: StringHuman-readable duration in HH:MM format.
hours: u32Whole hours component.
minutes: u32Whole minutes component (0–59).
name: StringEntity name (e.g. "Python", "my-project").
percent: f64Percentage of total time for the period (0.0–100.0).
seconds: u32Whole seconds component (0–59).
text: StringFull human-readable duration (e.g. "3 hrs 30 mins").
total_seconds: f64Total duration in seconds (fractional).
Trait Implementations§
Source§impl Clone for SummaryEntry
impl Clone for SummaryEntry
Source§fn clone(&self) -> SummaryEntry
fn clone(&self) -> SummaryEntry
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 SummaryEntry
impl Debug for SummaryEntry
Source§impl Default for SummaryEntry
impl Default for SummaryEntry
Source§fn default() -> SummaryEntry
fn default() -> SummaryEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SummaryEntry
impl<'de> Deserialize<'de> for SummaryEntry
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 SummaryEntry
impl RefUnwindSafe for SummaryEntry
impl Send for SummaryEntry
impl Sync for SummaryEntry
impl Unpin for SummaryEntry
impl UnsafeUnpin for SummaryEntry
impl UnwindSafe for SummaryEntry
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