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