pub struct RoutineExercise {
pub index: u32,
pub title: String,
pub rest_seconds: Option<f64>,
pub notes: Option<String>,
pub exercise_template_id: String,
pub supersets_id: Option<u32>,
pub sets: Vec<RoutineSet>,
}Expand description
An exercise entry within a Routine.
Fields§
§index: u32Index indicating the order of the exercise within the routine.
title: StringTitle of the exercise.
rest_seconds: Option<f64>The rest time in seconds between sets of the exercise.
The API documents this as a string but has been observed to also return a number; both are accepted.
notes: Option<String>Routine notes on the exercise.
exercise_template_id: StringThe id of the exercise template. Can be used to fetch the full template.
supersets_id: Option<u32>The id of the superset this exercise belongs to, if any.
sets: Vec<RoutineSet>The sets configured for this exercise.
Trait Implementations§
Source§impl Clone for RoutineExercise
impl Clone for RoutineExercise
Source§fn clone(&self) -> RoutineExercise
fn clone(&self) -> RoutineExercise
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoutineExercise
impl Debug for RoutineExercise
Source§impl Default for RoutineExercise
impl Default for RoutineExercise
Source§fn default() -> RoutineExercise
fn default() -> RoutineExercise
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RoutineExercise
impl<'de> Deserialize<'de> for RoutineExercise
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
Source§impl PartialEq for RoutineExercise
impl PartialEq for RoutineExercise
Source§impl Serialize for RoutineExercise
impl Serialize for RoutineExercise
impl StructuralPartialEq for RoutineExercise
Auto Trait Implementations§
impl Freeze for RoutineExercise
impl RefUnwindSafe for RoutineExercise
impl Send for RoutineExercise
impl Sync for RoutineExercise
impl Unpin for RoutineExercise
impl UnsafeUnpin for RoutineExercise
impl UnwindSafe for RoutineExercise
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