Struct google_fitness1::DataPoint[][src]

pub struct DataPoint {
    pub computation_time_millis: Option<String>,
    pub modified_time_millis: Option<String>,
    pub start_time_nanos: Option<String>,
    pub data_type_name: Option<String>,
    pub value: Option<Vec<Value>>,
    pub end_time_nanos: Option<String>,
    pub origin_data_source_id: Option<String>,
    pub raw_timestamp_nanos: Option<String>,
}

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

Used for version checking during transformation; that is, a datapoint can only replace another datapoint that has an older computation time stamp.

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.

The start time of the interval represented by this data point, in nanoseconds since epoch.

The data type defining the format of the values in this data point.

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.

The end time of the interval represented by this data point, in nanoseconds since epoch.

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.

The raw timestamp from the original SensorEvent.

Trait Implementations

impl Default for DataPoint
[src]

Returns the "default value" for a type. Read more

impl Clone for DataPoint
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DataPoint
[src]

Formats the value using the given formatter. Read more

impl Part for DataPoint
[src]

Auto Trait Implementations

impl Send for DataPoint

impl Sync for DataPoint