pub struct CompletionResult {
pub milestone_achieved: Option<u64>,
pub streak_updated: bool,
pub new_streak: u32,
pub total_completed: u64,
}Expand description
Result of recording a task completion
Fields§
§milestone_achieved: Option<u64>Milestone achieved (if any)
streak_updated: boolWhether streak was updated
new_streak: u32New streak count
total_completed: u64Total completed count
Trait Implementations§
Source§impl Clone for CompletionResult
impl Clone for CompletionResult
Source§fn clone(&self) -> CompletionResult
fn clone(&self) -> CompletionResult
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 moreAuto Trait Implementations§
impl Freeze for CompletionResult
impl RefUnwindSafe for CompletionResult
impl Send for CompletionResult
impl Sync for CompletionResult
impl Unpin for CompletionResult
impl UnsafeUnpin for CompletionResult
impl UnwindSafe for CompletionResult
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