Struct pace_core::PomodoroConfig
source · pub struct PomodoroConfig { /* private fields */ }Expand description
The pomodoro configuration for the pace application
Implementations§
source§impl PomodoroConfig
impl PomodoroConfig
sourcepub fn break_duration_minutes(&self) -> &u32
pub fn break_duration_minutes(&self) -> &u32
The duration of a short break in minutes
Default: 5
sourcepub fn long_break_duration_minutes(&self) -> &u32
pub fn long_break_duration_minutes(&self) -> &u32
The duration of a long break in minutes
Default: 15
sourcepub fn sessions_before_long_break(&self) -> &u32
pub fn sessions_before_long_break(&self) -> &u32
The number of work sessions before a long break
Default: 4
sourcepub fn work_duration_minutes(&self) -> &u32
pub fn work_duration_minutes(&self) -> &u32
The duration of a work session in minutes
Default: 25
Trait Implementations§
source§impl Clone for PomodoroConfig
impl Clone for PomodoroConfig
source§fn clone(&self) -> PomodoroConfig
fn clone(&self) -> PomodoroConfig
Returns a copy 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 PomodoroConfig
impl Debug for PomodoroConfig
source§impl Default for PomodoroConfig
impl Default for PomodoroConfig
source§impl<'de> Deserialize<'de> for PomodoroConfig
impl<'de> Deserialize<'de> for PomodoroConfig
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
source§impl Serialize for PomodoroConfig
impl Serialize for PomodoroConfig
impl Copy for PomodoroConfig
Auto Trait Implementations§
impl RefUnwindSafe for PomodoroConfig
impl Send for PomodoroConfig
impl Sync for PomodoroConfig
impl Unpin for PomodoroConfig
impl UnwindSafe for PomodoroConfig
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