[−][src]Struct strava_data::models::SummaryGear
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]
fn clone(&self) -> SummaryGear
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SummaryGear
[src]
impl Default for SummaryGear
[src]
fn default() -> SummaryGear
[src]
impl<'de> Deserialize<'de> for SummaryGear
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for SummaryGear
[src]
Auto Trait Implementations
impl RefUnwindSafe for SummaryGear
impl Send for SummaryGear
impl Sync for SummaryGear
impl Unpin for SummaryGear
impl UnwindSafe for SummaryGear
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,