pub struct RoutineSet {
pub index: u32,
pub type: String,
pub weight_kg: Option<f64>,
pub reps: Option<f64>,
pub rep_range: Option<RepRange>,
pub distance_meters: Option<f64>,
pub duration_seconds: Option<f64>,
pub rpe: Option<f64>,
pub custom_metric: Option<f64>,
}Expand description
A set belonging to an exercise within a Routine, as returned by the API.
Fields§
§index: u32Index indicating the order of the set within the exercise.
type: StringThe type of set: one of normal, warmup, dropset, failure.
weight_kg: Option<f64>Weight lifted, in kilograms.
reps: Option<f64>Number of reps logged for the set.
rep_range: Option<RepRange>A target rep range for the set, if applicable.
distance_meters: Option<f64>Number of meters logged for the set.
duration_seconds: Option<f64>Number of seconds logged for the set.
rpe: Option<f64>Rating of Perceived Exertion logged for the set.
custom_metric: Option<f64>Custom metric logged for the set.
Trait Implementations§
Source§impl Clone for RoutineSet
impl Clone for RoutineSet
Source§fn clone(&self) -> RoutineSet
fn clone(&self) -> RoutineSet
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 RoutineSet
impl Debug for RoutineSet
Source§impl Default for RoutineSet
impl Default for RoutineSet
Source§fn default() -> RoutineSet
fn default() -> RoutineSet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RoutineSet
impl<'de> Deserialize<'de> for RoutineSet
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 RoutineSet
impl PartialEq for RoutineSet
Source§impl Serialize for RoutineSet
impl Serialize for RoutineSet
impl StructuralPartialEq for RoutineSet
Auto Trait Implementations§
impl Freeze for RoutineSet
impl RefUnwindSafe for RoutineSet
impl Send for RoutineSet
impl Sync for RoutineSet
impl Unpin for RoutineSet
impl UnsafeUnpin for RoutineSet
impl UnwindSafe for RoutineSet
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