pub struct PauseUpload {
pub started_at: DateTime<FixedOffset>,
pub ended_at: Option<DateTime<FixedOffset>>,
pub duration_seconds: Option<i32>,
pub manual: bool,
pub reason: Option<String>,
}Expand description
One break, as the server takes it.
Fields§
§started_at: DateTime<FixedOffset>§ended_at: Option<DateTime<FixedOffset>>§duration_seconds: Option<i32>Seconds. Sent explicitly because kasl merges neighbouring pauses
before reporting them, so this is not always ended_at - started_at.
manual: boolA break the employee entered by hand - kasl’s protected flag.
reason: Option<String>Trait Implementations§
Source§impl Clone for PauseUpload
impl Clone for PauseUpload
Source§fn clone(&self) -> PauseUpload
fn clone(&self) -> PauseUpload
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 moreSource§impl Debug for PauseUpload
impl Debug for PauseUpload
Auto Trait Implementations§
impl Freeze for PauseUpload
impl RefUnwindSafe for PauseUpload
impl Send for PauseUpload
impl Sync for PauseUpload
impl Unpin for PauseUpload
impl UnsafeUnpin for PauseUpload
impl UnwindSafe for PauseUpload
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