wccg_models/activity/
activity_type.rs1use serde::{Deserialize, Serialize};
2use std::fmt;
3
4#[cfg(feature = "wasm")]
5use wasm_bindgen::prelude::wasm_bindgen;
6
7#[cfg_attr(feature = "wasm", wasm_bindgen)]
8#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
9pub enum ActivityType {
10 AlpineSki,
11 BackcountrySki,
12 Canoeing,
13 Crossfit,
14 EBikeRide,
15 Elliptical,
16 Golf,
17 Handcycle,
18 Hike,
19 IceSkate,
20 InlineSkate,
21 Kayaking,
22 Kitesurf,
23 NordicSki,
24 Ride,
25 RockClimbing,
26 RollerSki,
27 Rowing,
28 Run,
29 Sail,
30 Skateboard,
31 Snowboard,
32 Snowshoe,
33 Soccer,
34 StairStepper,
35 StandUpPaddling,
36 Surfing,
37 Swim,
38 Velomobile,
39 VirtualRide,
40 VirtualRun,
41 Walk,
42 WeightTraining,
43 Wheelchair,
44 Windsurf,
45 Workout,
46 Yoga,
47 Other,
48}
49
50impl fmt::Display for ActivityType {
51 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
52 write!(f, "{:?}", self)
53 }
54}