[−][src]Struct google_fitness1::DataPoint
Represents a single data point, generated by a particular data source. A data point holds a value for each field, an end timestamp and an optional start time. The exact semantics of each of these attributes are specified in the documentation for the particular data type.
A data point can represent an instantaneous measurement, reading or input observation, as well as averages or aggregates over a time interval. Check the data type documentation to determine which is the case for a particular data type.
Data points always contain one value for each field of the data type.
This type is not used in any activity, and only used as part of another schema.
Fields
computation_time_millis: Option<String>
DO NOT USE THIS FIELD. It is ignored, and not stored.
modified_time_millis: Option<String>
Indicates the last time this data point was modified. Useful only in contexts where we are listing the data changes, rather than representing the current state of the data.
start_time_nanos: Option<String>
The start time of the interval represented by this data point, in nanoseconds since epoch.
data_type_name: Option<String>
The data type defining the format of the values in this data point.
value: Option<Vec<Value>>
Values of each data type field for the data point. It is expected that each value corresponding to a data type field will occur in the same order that the field is listed with in the data type specified in a data source.
Only one of integer and floating point fields will be populated, depending on the format enum value within data source's type field.
end_time_nanos: Option<String>
The end time of the interval represented by this data point, in nanoseconds since epoch.
origin_data_source_id: Option<String>
If the data point is contained in a dataset for a derived data source, this field will be populated with the data source stream ID that created the data point originally.
WARNING: do not rely on this field for anything other than debugging. The value of this field, if it is set at all, is an implementation detail and is not guaranteed to remain consistent.
raw_timestamp_nanos: Option<String>
The raw timestamp from the original SensorEvent.
Trait Implementations
impl Clone for DataPoint
[src]
impl Debug for DataPoint
[src]
impl Default for DataPoint
[src]
impl<'de> Deserialize<'de> for DataPoint
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Part for DataPoint
[src]
impl Serialize for DataPoint
[src]
Auto Trait Implementations
impl RefUnwindSafe for DataPoint
impl Send for DataPoint
impl Sync for DataPoint
impl Unpin for DataPoint
impl UnwindSafe for DataPoint
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, 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<T> Typeable for T where
T: Any,
T: Any,