1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use getset::{Getters, Setters}; use serde::{Deserialize, Serialize}; #[derive(Debug, Serialize, Deserialize, Getters, Setters, Default)] #[getset(get = "pub", set = "pub")] pub struct SummaryGear { /// The gear's unique identifier. id: Option<String>, /// Resource state, indicates level of detail. Possible values: 2 -> \"summary\", 3 -> \"detail\" resource_state: Option<i32>, /// Whether this gear's is the owner's default one. primary: Option<bool>, /// The gear's name. name: Option<String>, /// The distance logged with this gear. distance: Option<f32>, }