#[non_exhaustive]pub struct MachineEntry {
pub digital: String,
pub hours: u32,
pub machine_name_id: String,
pub minutes: u32,
pub name: String,
pub percent: f64,
pub seconds: u32,
pub text: String,
pub total_seconds: f64,
}Expand description
A machine / hostname time-breakdown entry.
This is structurally similar to SummaryEntry but includes the
machine_name_id field returned by the API.
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.digital: StringHuman-readable duration in HH:MM format.
hours: u32Whole hours component.
machine_name_id: StringDisambiguated machine identifier returned by the API.
minutes: u32Whole minutes component (0–59).
name: StringHuman-readable machine name.
percent: f64Percentage of total time for the period (0.0–100.0).
seconds: u32Whole seconds component (0–59).
Defaults to 0 when absent — the API occasionally omits this field.
text: StringFull human-readable duration (e.g. "1 hr 15 mins").
total_seconds: f64Total duration in seconds (fractional).
Trait Implementations§
Source§impl Clone for MachineEntry
impl Clone for MachineEntry
Source§fn clone(&self) -> MachineEntry
fn clone(&self) -> MachineEntry
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 MachineEntry
impl Debug for MachineEntry
Source§impl Default for MachineEntry
impl Default for MachineEntry
Source§fn default() -> MachineEntry
fn default() -> MachineEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MachineEntry
impl<'de> Deserialize<'de> for MachineEntry
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 MachineEntry
impl RefUnwindSafe for MachineEntry
impl Send for MachineEntry
impl Sync for MachineEntry
impl Unpin for MachineEntry
impl UnsafeUnpin for MachineEntry
impl UnwindSafe for MachineEntry
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