strava_data/models/
summary_club.rs

1use serde::{Deserialize, Serialize};
2
3#[cfg(feature = "wasm")]
4use wasm_bindgen::prelude::wasm_bindgen;
5
6#[cfg_attr(feature = "wasm", wasm_bindgen)]
7#[derive(Debug, Serialize, Deserialize, Default, Clone)]
8pub struct SummaryClub {
9  /// The club's unique identifier.
10  pub id: Option<i32>,
11  /// Resource state, indicates level of detail. Possible values: 1 -> \"meta\", 2 -> \"summary\", 3 -> \"detail\"
12  pub resource_state: Option<i32>,
13  /// The club's name.
14  pub name: Option<String>,
15  /// URL to a 60x60 pixel profile picture.
16  pub profile_medium: Option<String>,
17  /// URL to a ~1185x580 pixel cover photo.
18  pub cover_photo: Option<String>,
19  /// URL to a ~360x176  pixel cover photo.
20  pub cover_photo_small: Option<String>,
21  pub sport_type: Option<String>,
22  /// The club's city.
23  pub city: Option<String>,
24  /// The club's state or geographical region.
25  pub state: Option<String>,
26  /// The club's country.
27  pub country: Option<String>,
28  /// Whether the club is private.
29  pub private: Option<bool>,
30  /// The club's member count.
31  pub member_count: Option<i32>,
32  /// Whether the club is featured or not.
33  pub featured: Option<bool>,
34  /// Whether the club is verified or not.
35  pub verified: Option<bool>,
36  /// The club's vanity URL.
37  pub url: Option<String>,
38}