pub struct AthleteEndpoint { /* private fields */ }Implementations§
Source§impl AthleteEndpoint
impl AthleteEndpoint
pub fn new(url: impl Into<String>, token: impl Into<String>) -> Self
pub fn get(&self) -> GetAthlete
pub fn zones(&self) -> GetAthleteZones
pub fn clubs(&self) -> ListAthleteClubs
pub fn activities(&self) -> ListAthleteActivities
Sourcepub fn update(&self, weight: f32) -> UpdateAthlete
pub fn update(&self, weight: f32) -> UpdateAthlete
Update the authenticated athlete’s weight.
Auto Trait Implementations§
impl Freeze for AthleteEndpoint
impl RefUnwindSafe for AthleteEndpoint
impl Send for AthleteEndpoint
impl Sync for AthleteEndpoint
impl Unpin for AthleteEndpoint
impl UnsafeUnpin for AthleteEndpoint
impl UnwindSafe for AthleteEndpoint
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