pub struct Workout {
pub id: String,
pub activity: String,
pub calories: Option<f32>,
pub day: String,
pub distance: Option<f32>,
pub end_datetime: String,
pub intensity: WorkoutIntensity,
pub label: Option<String>,
pub source: WorkoutSource,
pub start_datetime: String,
}
Fields§
§id: String
§activity: String
§calories: Option<f32>
§day: String
§distance: Option<f32>
§end_datetime: String
§intensity: WorkoutIntensity
§label: Option<String>
§source: WorkoutSource
§start_datetime: String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Workout
impl<'de> Deserialize<'de> for Workout
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
impl StructuralPartialEq for Workout
Auto Trait Implementations§
impl Freeze for Workout
impl RefUnwindSafe for Workout
impl Send for Workout
impl Sync for Workout
impl Unpin for Workout
impl UnwindSafe for Workout
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