#[non_exhaustive]#[repr(u8)]pub enum ActivitySubtype {
Show 20 variants
Generic = 0,
Treadmill = 1,
Street = 2,
Trail = 3,
Track = 4,
Spin = 5,
IndoorCycling = 6,
Road = 7,
Mountain = 8,
Downhill = 9,
Recumbent = 10,
Cyclocross = 11,
HandCycling = 12,
TrackCycling = 13,
IndoorRowing = 14,
Elliptical = 15,
StairClimbing = 16,
LapSwimming = 17,
OpenWater = 18,
All = 254,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Generic = 0
Treadmill = 1
Street = 2
Trail = 3
Track = 4
Spin = 5
IndoorCycling = 6
Road = 7
Mountain = 8
Downhill = 9
Recumbent = 10
Cyclocross = 11
HandCycling = 12
TrackCycling = 13
IndoorRowing = 14
Elliptical = 15
StairClimbing = 16
LapSwimming = 17
OpenWater = 18
All = 254
Implementations§
Trait Implementations§
Source§impl Clone for ActivitySubtype
impl Clone for ActivitySubtype
Source§fn clone(&self) -> ActivitySubtype
fn clone(&self) -> ActivitySubtype
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ActivitySubtype
impl Debug for ActivitySubtype
Source§impl Hash for ActivitySubtype
impl Hash for ActivitySubtype
Source§impl PartialEq for ActivitySubtype
impl PartialEq for ActivitySubtype
Source§fn eq(&self, other: &ActivitySubtype) -> bool
fn eq(&self, other: &ActivitySubtype) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ActivitySubtype
impl Eq for ActivitySubtype
impl StructuralPartialEq for ActivitySubtype
Auto Trait Implementations§
impl Freeze for ActivitySubtype
impl RefUnwindSafe for ActivitySubtype
impl Send for ActivitySubtype
impl Sync for ActivitySubtype
impl Unpin for ActivitySubtype
impl UnsafeUnpin for ActivitySubtype
impl UnwindSafe for ActivitySubtype
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