strava_client/models/photos_summary.rs
1/*
2 * Strava API v3
3 *
4 * The [Swagger Playground](https://developers.strava.com/playground) is the easiest way to familiarize yourself with the Strava API by submitting HTTP requests and observing the responses before you write any client code. It will show what a response will look like with different endpoints depending on the authorization scope you receive from your athletes. To use the Playground, go to https://www.strava.com/settings/api and change your “Authorization Callback Domain” to developers.strava.com. Please note, we only support Swagger 2.0. There is a known issue where you can only select one scope at a time. For more information, please check the section “client code” at https://developers.strava.com/docs.
5 *
6 * The version of the OpenAPI document: 3.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct PhotosSummary {
16 /// The number of photos
17 #[serde(rename = "count", skip_serializing_if = "Option::is_none")]
18 pub count: Option<i32>,
19 #[serde(rename = "primary", skip_serializing_if = "Option::is_none")]
20 pub primary: Option<Box<crate::models::PhotosSummaryPrimary>>,
21}
22
23impl PhotosSummary {
24 pub fn new() -> PhotosSummary {
25 PhotosSummary {
26 count: None,
27 primary: None,
28 }
29 }
30}
31
32