Skip to main content

PublicDailyActivity

Struct PublicDailyActivity 

Source
pub struct PublicDailyActivity {
Show 26 fields pub active_calories: i64, pub average_met_minutes: f64, pub class_5_min: Option<String>, pub contributors: PublicActivityContributors, pub day: IsoDate, pub equivalent_walking_distance: i64, pub high_activity_met_minutes: i64, pub high_activity_time: i64, pub id: X, pub inactivity_alerts: i64, pub low_activity_met_minutes: i64, pub low_activity_time: i64, pub medium_activity_met_minutes: i64, pub medium_activity_time: i64, pub met: PublicSample, pub meters_to_target: i64, pub non_wear_time: i64, pub resting_time: i64, pub score: Option<i64>, pub sedentary_met_minutes: i64, pub sedentary_time: i64, pub steps: i64, pub target_calories: i64, pub target_meters: i64, pub timestamp: LocalizedDateTime, pub total_calories: i64,
}
Expand description

Object defining a daily activity that is a 24-hour period starting at 4 a.m.

JSON schema
{
 "title": "PublicDailyActivity",
 "description": "Object defining a daily activity that is a 24-hour period starting at 4 a.m.",
 "type": "object",
 "required": [
   "active_calories",
   "average_met_minutes",
   "contributors",
   "day",
   "equivalent_walking_distance",
   "high_activity_met_minutes",
   "high_activity_time",
   "id",
   "inactivity_alerts",
   "low_activity_met_minutes",
   "low_activity_time",
   "medium_activity_met_minutes",
   "medium_activity_time",
   "met",
   "meters_to_target",
   "non_wear_time",
   "resting_time",
   "sedentary_met_minutes",
   "sedentary_time",
   "steps",
   "target_calories",
   "target_meters",
   "timestamp",
   "total_calories"
 ],
 "properties": {
   "active_calories": {
     "title": "",
     "description": "Active calories expended in kilocalories.",
     "type": "integer"
   },
   "average_met_minutes": {
     "title": "",
     "description": "Average MET minutes.",
     "type": "number"
   },
   "class_5_min": {
     "title": "",
     "description": "5-minute activity classification for the period where every character corresponds to:\n'0' = non wear\n'1' = rest\n'2' = inactive\n'3' = low activity\n'4' = medium activity\n'5' = high activity\nExample: \"001233334555524001\".",
     "type": [
       "string",
       "null"
     ]
   },
   "contributors": {
     "$ref": "#/components/schemas/PublicActivityContributors"
   },
   "day": {
     "$ref": "#/components/schemas/ISODate"
   },
   "equivalent_walking_distance": {
     "title": "",
     "description": "Equivalent walking distance of energe expenditure in meters.",
     "type": "integer"
   },
   "high_activity_met_minutes": {
     "title": "",
     "description": "The total METs of each minute classified as high activity.",
     "type": "integer"
   },
   "high_activity_time": {
     "title": "",
     "description": "The total time in seconds of each minute classified as high activity.",
     "type": "integer"
   },
   "id": {
     "title": "",
     "description": "Unique identifier of the object.",
     "type": "string",
     "minLength": 1
   },
   "inactivity_alerts": {
     "title": "",
     "description": "Number of inactivity alerts received.",
     "type": "integer"
   },
   "low_activity_met_minutes": {
     "title": "",
     "description": "The total METs of each minute classified as low activity.",
     "type": "integer"
   },
   "low_activity_time": {
     "title": "",
     "description": "The total time in seconds of each minute classified as low activity.",
     "type": "integer"
   },
   "medium_activity_met_minutes": {
     "title": "",
     "description": "The total METs of each minute classified as medium activity.",
     "type": "integer"
   },
   "medium_activity_time": {
     "title": "",
     "description": "The total time in seconds of each minute classified as medium activity.",
     "type": "integer"
   },
   "met": {
     "$ref": "#/components/schemas/PublicSample"
   },
   "meters_to_target": {
     "title": "",
     "description": "Meters remaining to target.",
     "type": "integer"
   },
   "non_wear_time": {
     "title": "",
     "description": "Ring non-wear time in seconds.",
     "type": "integer"
   },
   "resting_time": {
     "title": "",
     "description": "Resting time in seconds.",
     "type": "integer"
   },
   "score": {
     "title": "",
     "description": "Activity score in range [1, 100].",
     "type": [
       "integer",
       "null"
     ]
   },
   "sedentary_met_minutes": {
     "title": "",
     "description": "Sedentary MET minutes.",
     "type": "integer"
   },
   "sedentary_time": {
     "title": "",
     "description": "Sedentary time in seconds.",
     "type": "integer"
   },
   "steps": {
     "title": "",
     "description": "Total number of steps taken.",
     "type": "integer"
   },
   "target_calories": {
     "title": "",
     "description": "Daily activity target in kilocalories.",
     "type": "integer"
   },
   "target_meters": {
     "title": "",
     "description": "Daily activity target in meters.",
     "type": "integer"
   },
   "timestamp": {
     "$ref": "#/components/schemas/LocalizedDateTime"
   },
   "total_calories": {
     "title": "",
     "description": "Total calories expended in kilocalories.",
     "type": "integer"
   }
 },
 "x-cloud-only": true,
 "x-collection": "publicdailyactivity",
 "x-owner": "movement-squad"
}

Fields§

§active_calories: i64

Active calories expended in kilocalories.

§average_met_minutes: f64

Average MET minutes.

§class_5_min: Option<String>

5-minute activity classification for the period where every character corresponds to: ‘0’ = non wear ‘1’ = rest ‘2’ = inactive ‘3’ = low activity ‘4’ = medium activity ‘5’ = high activity Example: “001233334555524001”.

§contributors: PublicActivityContributors§day: IsoDate§equivalent_walking_distance: i64

Equivalent walking distance of energe expenditure in meters.

§high_activity_met_minutes: i64

The total METs of each minute classified as high activity.

§high_activity_time: i64

The total time in seconds of each minute classified as high activity.

§id: X

Unique identifier of the object.

§inactivity_alerts: i64

Number of inactivity alerts received.

§low_activity_met_minutes: i64

The total METs of each minute classified as low activity.

§low_activity_time: i64

The total time in seconds of each minute classified as low activity.

§medium_activity_met_minutes: i64

The total METs of each minute classified as medium activity.

§medium_activity_time: i64

The total time in seconds of each minute classified as medium activity.

§met: PublicSample§meters_to_target: i64

Meters remaining to target.

§non_wear_time: i64

Ring non-wear time in seconds.

§resting_time: i64

Resting time in seconds.

§score: Option<i64>

Activity score in range [1, 100].

§sedentary_met_minutes: i64

Sedentary MET minutes.

§sedentary_time: i64

Sedentary time in seconds.

§steps: i64

Total number of steps taken.

§target_calories: i64

Daily activity target in kilocalories.

§target_meters: i64

Daily activity target in meters.

§timestamp: LocalizedDateTime§total_calories: i64

Total calories expended in kilocalories.

Trait Implementations§

Source§

impl Clone for PublicDailyActivity

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PublicDailyActivity

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for PublicDailyActivity

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for PublicDailyActivity

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

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

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more