pub struct AppData {Show 37 fields
pub tasks: Vec<Task>,
pub total_focus_minutes: u32,
pub total_sessions: u32,
pub streak_days: u32,
pub last_session_date: Option<String>,
pub daily_goal_minutes: u32,
pub sound_enabled: bool,
pub auto_start_breaks: bool,
pub auto_start_focus: bool,
pub next_id: u64,
pub today_focus_minutes: u32,
pub today_date: Option<String>,
pub focus_minutes: u32,
pub short_break_minutes: u32,
pub long_break_minutes: u32,
pub long_break_every: u32,
pub session_history: Vec<FocusSessionRecord>,
pub auto_pick_task: bool,
pub auto_advance_task: bool,
pub theme: String,
pub active_task_id: Option<u64>,
pub notify_on_finish: bool,
pub goal_streak_days: u32,
pub last_goal_date: Option<String>,
pub empty_queue_behavior: EmptyQueueBehavior,
pub log_breaks: bool,
pub estimate_complete: EstimateCompleteBehavior,
pub show_terminal_title: bool,
pub warn_one_minute: bool,
pub auto_pause_idle_minutes: u32,
pub archive_after_days: u32,
pub weekly_streak_weeks: u32,
pub monthly_streak_months: u32,
pub last_weekly_streak_key: Option<String>,
pub last_monthly_streak_key: Option<String>,
pub timer_presets: Vec<TimerPreset>,
pub active_preset: Option<String>,
}Fields§
§tasks: Vec<Task>§total_focus_minutes: u32§total_sessions: u32§streak_days: u32§last_session_date: Option<String>§daily_goal_minutes: u32§sound_enabled: bool§auto_start_breaks: bool§auto_start_focus: bool§next_id: u64§today_focus_minutes: u32§today_date: Option<String>§focus_minutes: u32§short_break_minutes: u32§long_break_minutes: u32§long_break_every: u32§session_history: Vec<FocusSessionRecord>§auto_pick_task: bool§auto_advance_task: bool§theme: String§active_task_id: Option<u64>§notify_on_finish: bool§goal_streak_days: u32§last_goal_date: Option<String>§empty_queue_behavior: EmptyQueueBehavior§log_breaks: bool§estimate_complete: EstimateCompleteBehavior§show_terminal_title: bool§warn_one_minute: bool§auto_pause_idle_minutes: u32§archive_after_days: u32§weekly_streak_weeks: u32§monthly_streak_months: u32§last_weekly_streak_key: Option<String>§last_monthly_streak_key: Option<String>§timer_presets: Vec<TimerPreset>§active_preset: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppData
impl<'de> Deserialize<'de> for AppData
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 AppData
impl RefUnwindSafe for AppData
impl Send for AppData
impl Sync for AppData
impl Unpin for AppData
impl UnsafeUnpin for AppData
impl UnwindSafe for AppData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more