pub struct StreakInfo {
pub current_streak: u32,
pub longest_streak: u32,
pub last_completed_date: Option<String>,
}Expand description
Streak tracking information
Fields§
§current_streak: u32§longest_streak: u32§last_completed_date: Option<String>Trait Implementations§
Source§impl Clone for StreakInfo
impl Clone for StreakInfo
Source§fn clone(&self) -> StreakInfo
fn clone(&self) -> StreakInfo
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 StreakInfo
impl Debug for StreakInfo
Source§impl Default for StreakInfo
impl Default for StreakInfo
Source§fn default() -> StreakInfo
fn default() -> StreakInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreakInfo
impl<'de> Deserialize<'de> for StreakInfo
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 StreakInfo
impl RefUnwindSafe for StreakInfo
impl Send for StreakInfo
impl Sync for StreakInfo
impl Unpin for StreakInfo
impl UnsafeUnpin for StreakInfo
impl UnwindSafe for StreakInfo
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