Struct pace_core::ReviewSummary
source · pub struct ReviewSummary {
pub period_start: PaceDateTime,
pub period_end: PaceDateTime,
pub total_time_spent: PaceDuration,
pub activities_summary: HashMap<String, ActivitySummary>,
pub highlights: Highlights,
pub suggestions: Vec<String>,
}
Expand description
Represents a summary of activities and insights for a specified review period.
Fields§
§period_start: PaceDateTime
The start date and time of the review period.
period_end: PaceDateTime
The end date and time of the review period.
total_time_spent: PaceDuration
Total time spent on all activities within the review period.
activities_summary: HashMap<String, ActivitySummary>
Summary of activities grouped by a category or another relevant identifier.
highlights: Highlights
Highlights extracted from the review data, offering insights into user productivity.
suggestions: Vec<String>
Suggestions for the user based on the review, aimed at improving productivity or time management.
Implementations§
source§impl ReviewSummary
impl ReviewSummary
sourcepub fn builder() -> ReviewSummaryBuilder<((), (), (), (), (), ())>
pub fn builder() -> ReviewSummaryBuilder<((), (), (), (), (), ())>
Create a builder for building ReviewSummary
.
On the builder, call .period_start(...)
, .period_end(...)
, .total_time_spent(...)
, .activities_summary(...)
, .highlights(...)
, .suggestions(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ReviewSummary
.
source§impl ReviewSummary
impl ReviewSummary
sourcepub fn period_start(&self) -> &PaceDateTime
pub fn period_start(&self) -> &PaceDateTime
The start date and time of the review period.
sourcepub fn period_end(&self) -> &PaceDateTime
pub fn period_end(&self) -> &PaceDateTime
The end date and time 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 activities_summary(&self) -> &HashMap<String, ActivitySummary>
pub fn activities_summary(&self) -> &HashMap<String, ActivitySummary>
Summary of activities grouped by a category or another relevant identifier.
sourcepub fn highlights(&self) -> &Highlights
pub fn highlights(&self) -> &Highlights
Highlights extracted from the review data, offering insights into user productivity.
sourcepub fn suggestions(&self) -> &Vec<String>
pub fn suggestions(&self) -> &Vec<String>
Suggestions for the user based on the review, aimed at improving productivity or time management.
source§impl ReviewSummary
impl ReviewSummary
sourcepub fn set_period_start(&mut self, val: PaceDateTime) -> &mut Self
pub fn set_period_start(&mut self, val: PaceDateTime) -> &mut Self
The start date and time of the review period.
sourcepub fn set_period_end(&mut self, val: PaceDateTime) -> &mut Self
pub fn set_period_end(&mut self, val: PaceDateTime) -> &mut Self
The end date and time 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_activities_summary(
&mut self,
val: HashMap<String, ActivitySummary>
) -> &mut Self
pub fn set_activities_summary( &mut self, val: HashMap<String, ActivitySummary> ) -> &mut Self
Summary of activities grouped by a category or another relevant identifier.
sourcepub fn set_highlights(&mut self, val: Highlights) -> &mut Self
pub fn set_highlights(&mut self, val: Highlights) -> &mut Self
Highlights extracted from the review data, offering insights into user productivity.
sourcepub fn set_suggestions(&mut self, val: Vec<String>) -> &mut Self
pub fn set_suggestions(&mut self, val: Vec<String>) -> &mut Self
Suggestions for the user based on the review, aimed at improving productivity or time management.
source§impl ReviewSummary
impl ReviewSummary
sourcepub fn period_start_mut(&mut self) -> &mut PaceDateTime
pub fn period_start_mut(&mut self) -> &mut PaceDateTime
The start date and time of the review period.
sourcepub fn period_end_mut(&mut self) -> &mut PaceDateTime
pub fn period_end_mut(&mut self) -> &mut PaceDateTime
The end date and time 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 activities_summary_mut(
&mut self
) -> &mut HashMap<String, ActivitySummary>
pub fn activities_summary_mut( &mut self ) -> &mut HashMap<String, ActivitySummary>
Summary of activities grouped by a category or another relevant identifier.
sourcepub fn highlights_mut(&mut self) -> &mut Highlights
pub fn highlights_mut(&mut self) -> &mut Highlights
Highlights extracted from the review data, offering insights into user productivity.
sourcepub fn suggestions_mut(&mut self) -> &mut Vec<String>
pub fn suggestions_mut(&mut self) -> &mut Vec<String>
Suggestions for the user based on the review, aimed at improving productivity or time management.
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 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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§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 more§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