strava_data/models/summary_athlete.rs
1use super::{SummaryClub, SummaryGear};
2use serde::{Deserialize, Serialize};
3use std::vec::Vec;
4
5#[cfg(feature = "wasm")]
6use wasm_bindgen::prelude::wasm_bindgen;
7
8#[cfg_attr(feature = "wasm", wasm_bindgen)]
9#[derive(Debug, Serialize, Deserialize, Default, Clone)]
10pub struct SummaryAthlete {
11 /// The unique identifier of the athlete
12 pub id: Option<i32>,
13 /// Resource state, indicates level of detail. Possible values: 1 -> \"meta\", 2 -> \"summary\", 3 -> \"detail\"
14 pub resource_state: Option<i32>,
15 /// The athlete's first name.
16 pub firstname: Option<String>,
17 /// The athlete's last name.
18 pub lastname: Option<String>,
19 /// URL to a 62x62 pixel profile picture.
20 pub profile_medium: Option<String>,
21 /// URL to a 124x124 pixel profile picture.
22 pub profile: Option<String>,
23 /// The athlete's city.
24 pub city: Option<String>,
25 /// The athlete's state or geographical region.
26 pub state: Option<String>,
27 /// The athlete's country.
28 pub country: Option<String>,
29 /// The athlete's sex.
30 pub sex: Option<String>,
31 /// Whether the athlete has any Summit subscription.
32 pub summit: Option<bool>,
33 /// The time at which the athlete was created.
34 pub created_at: Option<String>,
35 /// The time at which the athlete was last updated.
36 pub updated_at: Option<String>,
37 /// The athlete's follower count.
38 pub follower_count: Option<i32>,
39 /// The athlete's friend count.
40 pub friend_count: Option<i32>,
41 /// The athlete's preferred unit system.
42 pub measurement_preference: Option<String>,
43 /// The athlete's FTP (Functional Threshold Power).
44 pub ftp: Option<i32>,
45 /// The athlete's weight.
46 pub weight: Option<f32>,
47 /// The athlete's clubs.
48 pub clubs: Option<Vec<SummaryClub>>,
49 /// The athlete's bikes.
50 pub bikes: Option<Vec<SummaryGear>>,
51 /// The athlete's shoes.
52 pub shoes: Option<Vec<SummaryGear>>,
53}