pub struct WorkoutExerciseInput {
pub exercise_template_id: String,
pub superset_id: Option<i64>,
pub notes: Option<String>,
pub sets: Vec<WorkoutSetInput>,
}Expand description
An exercise to include when creating or updating a workout.
Fields§
§exercise_template_id: StringThe ID of the exercise template.
superset_id: Option<i64>The ID of the superset this exercise belongs to, if any.
notes: Option<String>Additional notes for the exercise.
sets: Vec<WorkoutSetInput>The sets performed for this exercise.
Implementations§
Trait Implementations§
Source§impl Clone for WorkoutExerciseInput
impl Clone for WorkoutExerciseInput
Source§fn clone(&self) -> WorkoutExerciseInput
fn clone(&self) -> WorkoutExerciseInput
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 WorkoutExerciseInput
impl Debug for WorkoutExerciseInput
Source§impl Default for WorkoutExerciseInput
impl Default for WorkoutExerciseInput
Source§fn default() -> WorkoutExerciseInput
fn default() -> WorkoutExerciseInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkoutExerciseInput
impl<'de> Deserialize<'de> for WorkoutExerciseInput
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 WorkoutExerciseInput
impl PartialEq for WorkoutExerciseInput
Source§impl Serialize for WorkoutExerciseInput
impl Serialize for WorkoutExerciseInput
impl StructuralPartialEq for WorkoutExerciseInput
Auto Trait Implementations§
impl Freeze for WorkoutExerciseInput
impl RefUnwindSafe for WorkoutExerciseInput
impl Send for WorkoutExerciseInput
impl Sync for WorkoutExerciseInput
impl Unpin for WorkoutExerciseInput
impl UnsafeUnpin for WorkoutExerciseInput
impl UnwindSafe for WorkoutExerciseInput
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