pub struct TimerData {
pub timer_type: TimerType,
pub state: TimerState,
pub target_duration: Option<Duration>,
pub elapsed: Duration,
pub paused_time: Duration,
pub start_time: Option<DateTime<Utc>>,
pub pause_start: Option<DateTime<Utc>>,
}
Fields§
§timer_type: TimerType
§state: TimerState
§target_duration: Option<Duration>
§elapsed: Duration
§paused_time: Duration
§start_time: Option<DateTime<Utc>>
§pause_start: Option<DateTime<Utc>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TimerData
impl<'de> Deserialize<'de> for TimerData
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 TimerData
impl RefUnwindSafe for TimerData
impl Send for TimerData
impl Sync for TimerData
impl Unpin for TimerData
impl UnwindSafe for TimerData
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