pub struct CaptionContext {
pub activities: Vec<ActivityEvent>,
pub sleep: Vec<SleepEvent>,
pub moods: Vec<MoodEvent>,
pub top_k_activity: usize,
pub top_k_sleep: usize,
pub min_activity_duration: usize,
pub max_structural_per_category: usize,
}Expand description
All contextual information needed to produce a full multi-level caption.
Fields§
§activities: Vec<ActivityEvent>Labelled activity events.
sleep: Vec<SleepEvent>Sleep intervals.
moods: Vec<MoodEvent>Self-reported mood entries.
top_k_activity: usizeMaximum number of activity events to include (default: 8).
top_k_sleep: usizeMaximum number of sleep intervals to include (default: 2).
min_activity_duration: usizeMinimum activity duration in minutes (default: 20).
max_structural_per_category: usizeMaximum insights per structural category (default: 7).
Implementations§
Trait Implementations§
Source§impl Debug for CaptionContext
impl Debug for CaptionContext
Source§impl Default for CaptionContext
impl Default for CaptionContext
Source§fn default() -> CaptionContext
fn default() -> CaptionContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CaptionContext
impl RefUnwindSafe for CaptionContext
impl Send for CaptionContext
impl Sync for CaptionContext
impl Unpin for CaptionContext
impl UnsafeUnpin for CaptionContext
impl UnwindSafe for CaptionContext
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> 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