Struct pace_core::ReviewSummary
source · pub struct ReviewSummary { /* private fields */ }Expand description
Represents a summary of activities and insights for a specified review period.
Implementations§
source§impl ReviewSummary
impl ReviewSummary
sourcepub fn builder() -> ReviewSummaryBuilder<((), (), (), ())>
pub fn builder() -> ReviewSummaryBuilder<((), (), (), ())>
Create a builder for building ReviewSummary.
On the builder, call .time_range(...), .total_time_spent(...), .total_break_duration(...), .summary_groups_by_category(...) to set the values of the fields.
Finally, call .build() to create the instance of ReviewSummary.
source§impl ReviewSummary
impl ReviewSummary
sourcepub fn time_range(&self) -> &TimeRangeOptions
pub fn time_range(&self) -> &TimeRangeOptions
The time range of the review period.
sourcepub fn total_time_spent(&self) -> &PaceDuration
pub fn total_time_spent(&self) -> &PaceDuration
Total time spent on all activities within the review period.
sourcepub fn total_break_duration(&self) -> &PaceDuration
pub fn total_break_duration(&self) -> &PaceDuration
Total time spent on intermissions within the review period.
sourcepub fn summary_groups_by_category(&self) -> &SummaryGroupByCategory
pub fn summary_groups_by_category(&self) -> &SummaryGroupByCategory
Summary of activities grouped by a category or another relevant identifier.
source§impl ReviewSummary
impl ReviewSummary
sourcepub fn set_time_range(&mut self, val: TimeRangeOptions) -> &mut Self
pub fn set_time_range(&mut self, val: TimeRangeOptions) -> &mut Self
The time range of the review period.
sourcepub fn set_total_time_spent(&mut self, val: PaceDuration) -> &mut Self
pub fn set_total_time_spent(&mut self, val: PaceDuration) -> &mut Self
Total time spent on all activities within the review period.
sourcepub fn set_total_break_duration(&mut self, val: PaceDuration) -> &mut Self
pub fn set_total_break_duration(&mut self, val: PaceDuration) -> &mut Self
Total time spent on intermissions within the review period.
sourcepub fn set_summary_groups_by_category(
&mut self,
val: SummaryGroupByCategory
) -> &mut Self
pub fn set_summary_groups_by_category( &mut self, val: SummaryGroupByCategory ) -> &mut Self
Summary of activities grouped by a category or another relevant identifier.
source§impl ReviewSummary
impl ReviewSummary
sourcepub fn time_range_mut(&mut self) -> &mut TimeRangeOptions
pub fn time_range_mut(&mut self) -> &mut TimeRangeOptions
The time range of the review period.
sourcepub fn total_time_spent_mut(&mut self) -> &mut PaceDuration
pub fn total_time_spent_mut(&mut self) -> &mut PaceDuration
Total time spent on all activities within the review period.
sourcepub fn total_break_duration_mut(&mut self) -> &mut PaceDuration
pub fn total_break_duration_mut(&mut self) -> &mut PaceDuration
Total time spent on intermissions within the review period.
sourcepub fn summary_groups_by_category_mut(&mut self) -> &mut SummaryGroupByCategory
pub fn summary_groups_by_category_mut(&mut self) -> &mut SummaryGroupByCategory
Summary of activities grouped by a category or another relevant identifier.
source§impl ReviewSummary
impl ReviewSummary
pub fn new( time_range: TimeRangeOptions, summary_groups_by_category: SummaryGroupByCategory ) -> Self
Trait Implementations§
source§impl Clone for ReviewSummary
impl Clone for ReviewSummary
source§fn clone(&self) -> ReviewSummary
fn clone(&self) -> ReviewSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ReviewSummary
impl Debug for ReviewSummary
source§impl Default for ReviewSummary
impl Default for ReviewSummary
source§fn default() -> ReviewSummary
fn default() -> ReviewSummary
source§impl Display for ReviewSummary
impl Display for ReviewSummary
source§impl PartialEq for ReviewSummary
impl PartialEq for ReviewSummary
source§fn eq(&self, other: &ReviewSummary) -> bool
fn eq(&self, other: &ReviewSummary) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for ReviewSummary
impl Serialize for ReviewSummary
impl Eq for ReviewSummary
impl StructuralPartialEq for ReviewSummary
Auto Trait Implementations§
impl RefUnwindSafe for ReviewSummary
impl Send for ReviewSummary
impl Sync for ReviewSummary
impl Unpin for ReviewSummary
impl UnwindSafe for ReviewSummary
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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<D> OwoColorize for D
impl<D> OwoColorize for D
source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moresource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more