[][src]Struct strava_data::models::SummaryGear

pub struct SummaryGear { /* fields omitted */ }

Implementations

impl SummaryGear[src]

pub fn id(&self) -> &Option<String>[src]

The gear's unique identifier.

pub fn resource_state(&self) -> &Option<i32>[src]

Resource state, indicates level of detail. Possible values: 2 -> "summary", 3 -> "detail"

pub fn primary(&self) -> &Option<bool>[src]

Whether this gear's is the owner's default one.

pub fn name(&self) -> &Option<String>[src]

The gear's name.

pub fn distance(&self) -> &Option<f32>[src]

The distance logged with this gear.

impl SummaryGear[src]

pub fn set_id(&mut self, val: Option<String>) -> &mut Self[src]

The gear's unique identifier.

pub fn set_resource_state(&mut self, val: Option<i32>) -> &mut Self[src]

Resource state, indicates level of detail. Possible values: 2 -> "summary", 3 -> "detail"

pub fn set_primary(&mut self, val: Option<bool>) -> &mut Self[src]

Whether this gear's is the owner's default one.

pub fn set_name(&mut self, val: Option<String>) -> &mut Self[src]

The gear's name.

pub fn set_distance(&mut self, val: Option<f32>) -> &mut Self[src]

The distance logged with this gear.

Trait Implementations

impl Clone for SummaryGear[src]

impl Debug for SummaryGear[src]

impl Default for SummaryGear[src]

impl<'de> Deserialize<'de> for SummaryGear[src]

impl Serialize for SummaryGear[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.