View Source GoogleApi.Fitness.V1.Model.DataTypeField (google_api_fitness v0.26.0)

In case of multi-dimensional data (such as an accelerometer with x, y, and z axes) each field represents one dimension. Each data type field has a unique name which identifies it. The field also defines the format of the data (int, float, etc.). This message is only instantiated in code and not used for wire comms or stored in any way.

Attributes

  • format (type: String.t, default: nil) - The different supported formats for each field in a data type.
  • name (type: String.t, default: nil) - Defines the name and format of data. Unlike data type names, field names are not namespaced, and only need to be unique within the data type.
  • optional (type: boolean(), default: nil) -

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Fitness.V1.Model.DataTypeField{
  format: String.t() | nil,
  name: String.t() | nil,
  optional: boolean() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.