pub struct DurationInfo {
pub total_seconds: i64,
pub days: i64,
pub hours: i64,
pub minutes: i64,
pub seconds: i64,
pub human_readable: String,
}Expand description
Duration information between two timestamps.
Fields§
§total_seconds: i64Total duration in seconds (negative if end is before start).
days: i64Days component of the decomposed duration.
hours: i64Hours component (0-23).
minutes: i64Minutes component (0-59).
seconds: i64Seconds component (0-59).
human_readable: StringHuman-readable representation (e.g., “2 days, 3 hours, 15 minutes”).
Trait Implementations§
Source§impl Clone for DurationInfo
impl Clone for DurationInfo
Source§fn clone(&self) -> DurationInfo
fn clone(&self) -> DurationInfo
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 DurationInfo
impl Debug for DurationInfo
Auto Trait Implementations§
impl Freeze for DurationInfo
impl RefUnwindSafe for DurationInfo
impl Send for DurationInfo
impl Sync for DurationInfo
impl Unpin for DurationInfo
impl UnsafeUnpin for DurationInfo
impl UnwindSafe for DurationInfo
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