pub struct WorkSession {
pub id: Uuid,
pub session_type: TimerType,
pub start_time: DateTime<Utc>,
pub end_time: Option<DateTime<Utc>>,
pub duration: Duration,
pub paused_duration: Duration,
pub description: Option<String>,
pub tags: Vec<String>,
}
Fields§
§id: Uuid
§session_type: TimerType
§start_time: DateTime<Utc>
§end_time: Option<DateTime<Utc>>
§duration: Duration
§paused_duration: Duration
§description: Option<String>
Trait Implementations§
Source§impl Clone for WorkSession
impl Clone for WorkSession
Source§fn clone(&self) -> WorkSession
fn clone(&self) -> WorkSession
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 WorkSession
impl Debug for WorkSession
Source§impl<'de> Deserialize<'de> for WorkSession
impl<'de> Deserialize<'de> for WorkSession
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 WorkSession
impl RefUnwindSafe for WorkSession
impl Send for WorkSession
impl Sync for WorkSession
impl Unpin for WorkSession
impl UnwindSafe for WorkSession
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