pub struct TodoReminder { /* private fields */ }Expand description
Todo reminder content builder
Implementations§
Source§impl TodoReminder
impl TodoReminder
Sourcepub fn set_pending_tasks(self, tasks: Vec<String>) -> Self
pub fn set_pending_tasks(self, tasks: Vec<String>) -> Self
Set pending tasks
Sourcepub fn set_in_progress(self, task: impl Into<String>) -> Self
pub fn set_in_progress(self, task: impl Into<String>) -> Self
Set in-progress task
Sourcepub fn with_max_reminders(self, max: usize) -> Self
pub fn with_max_reminders(self, max: usize) -> Self
Set max reminders per task
Sourcepub fn should_remind(&self, task: &str) -> bool
pub fn should_remind(&self, task: &str) -> bool
Check if should remind (not exceeded max)
Sourcepub fn increment_reminder(&mut self, task: &str)
pub fn increment_reminder(&mut self, task: &str)
Increment reminder count
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TodoReminder
impl RefUnwindSafe for TodoReminder
impl Send for TodoReminder
impl Sync for TodoReminder
impl Unpin for TodoReminder
impl UnsafeUnpin for TodoReminder
impl UnwindSafe for TodoReminder
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