strava_data/models/
summary_gear.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 SummaryGear {
9  /// The gear's unique identifier.
10  pub id: Option<String>,
11  /// Resource state, indicates level of detail. Possible values: 2 -> \"summary\", 3 -> \"detail\"
12  pub resource_state: Option<i32>,
13  /// Whether this gear's is the owner's default one.
14  pub primary: Option<bool>,
15  /// The gear's name.
16  pub name: Option<String>,
17  /// The distance logged with this gear.
18  pub distance: Option<f32>,
19}