Struct strava_data::models::SummaryGear
source · pub struct SummaryGear {
pub id: Option<String>,
pub resource_state: Option<i32>,
pub primary: Option<bool>,
pub name: Option<String>,
pub distance: Option<f32>,
}
Fields§
§id: Option<String>
The gear’s unique identifier.
resource_state: Option<i32>
Resource state, indicates level of detail. Possible values: 2 -> "summary", 3 -> "detail"
primary: Option<bool>
Whether this gear’s is the owner’s default one.
name: Option<String>
The gear’s name.
distance: Option<f32>
The distance logged with this gear.
Trait Implementations§
source§impl Clone for SummaryGear
impl Clone for SummaryGear
source§fn clone(&self) -> SummaryGear
fn clone(&self) -> SummaryGear
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SummaryGear
impl Debug for SummaryGear
source§impl Default for SummaryGear
impl Default for SummaryGear
source§fn default() -> SummaryGear
fn default() -> SummaryGear
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SummaryGear
impl<'de> Deserialize<'de> for SummaryGear
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SummaryGear
impl RefUnwindSafe for SummaryGear
impl Send for SummaryGear
impl Sync for SummaryGear
impl Unpin for SummaryGear
impl UnwindSafe for SummaryGear
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more