pub struct ExerciseRecord {
pub date: NaiveDate,
pub exercise_name: String,
pub target: TargetReps,
pub sets: Vec<Set>,
}Expand description
Represents a record of a single exercise session, including the date, exercise name, target repetition range, and the sets completed.
Fields§
§date: NaiveDateThe date the exercise was completed, formatted as DD.MM.YYYY.
exercise_name: StringThe name of the exercise performed (e.g., “bench press”).
target: TargetRepsThe target repetitions, including the total sets and the min-max rep range.
sets: Vec<Set>A vector of Set instances, each containing the details of completed sets.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExerciseRecord
impl RefUnwindSafe for ExerciseRecord
impl Send for ExerciseRecord
impl Sync for ExerciseRecord
impl Unpin for ExerciseRecord
impl UnsafeUnpin for ExerciseRecord
impl UnwindSafe for ExerciseRecord
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