#[non_exhaustive]#[repr(u8)]pub enum ActivityType {
Generic = 0,
Running = 1,
Cycling = 2,
Transition = 3,
FitnessEquipment = 4,
Swimming = 5,
Walking = 6,
Sedentary = 8,
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
Running = 1
Cycling = 2
Transition = 3
FitnessEquipment = 4
Swimming = 5
Walking = 6
Sedentary = 8
All = 254
Implementations§
Source§impl ActivityType
impl ActivityType
Trait Implementations§
Source§impl Clone for ActivityType
impl Clone for ActivityType
Source§fn clone(&self) -> ActivityType
fn clone(&self) -> ActivityType
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 ActivityType
impl Debug for ActivityType
Source§impl Hash for ActivityType
impl Hash for ActivityType
Source§impl PartialEq for ActivityType
impl PartialEq for ActivityType
Source§fn eq(&self, other: &ActivityType) -> bool
fn eq(&self, other: &ActivityType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ActivityType
impl Eq for ActivityType
impl StructuralPartialEq for ActivityType
Auto Trait Implementations§
impl Freeze for ActivityType
impl RefUnwindSafe for ActivityType
impl Send for ActivityType
impl Sync for ActivityType
impl Unpin for ActivityType
impl UnsafeUnpin for ActivityType
impl UnwindSafe for ActivityType
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