pub struct TimeEntryRequest {
pub hours: f32,
pub activity_id: u32,
pub comment: String,
pub spent_on: String,
}Expand description
Payload sent to log_time when the user confirms the Log Time popup.
All fields are required — the popup enforces them before submission.
Fields§
§hours: f32Duration in hours (e.g. 1.5 for 1h30).
activity_id: u32Identifier of the selected activity category.
comment: StringOptional free-text comment. May be empty.
spent_on: StringDate on which the time was spent, in YYYY-MM-DD format (defaults to today).
Trait Implementations§
Source§impl Clone for TimeEntryRequest
impl Clone for TimeEntryRequest
Source§fn clone(&self) -> TimeEntryRequest
fn clone(&self) -> TimeEntryRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TimeEntryRequest
impl RefUnwindSafe for TimeEntryRequest
impl Send for TimeEntryRequest
impl Sync for TimeEntryRequest
impl Unpin for TimeEntryRequest
impl UnsafeUnpin for TimeEntryRequest
impl UnwindSafe for TimeEntryRequest
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