CitraClient.Schemas.MsiBusPredictionRead (citra_client v0.3.0)

View Source

Struct generated from the MsiBusPredictionRead schema.

Fields

  • :creation_epochDateTime.t() (API key: creationEpoch)
  • :g_minus_rnumber() (API key: gMinusR)
  • :id — UUID String.t()
  • :model_versionString.t() (API key: modelVersion)
  • :msi_confidencenumber() (API key: msiConfidence)
  • :predicted_bus_typeString.t() (API key: predictedBusType)
  • :r_minus_inumber() (API key: rMinusI)
  • :satellite_id — UUID String.t() (API key: satelliteId)
  • :session_epochDateTime.t() (API key: sessionEpoch)

Summary

Functions

Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.

Convert this struct into a map with the API's camelCase keys, ready to be JSON-encoded. Fields whose value is nil are omitted.

Types

t()

@type t() :: %CitraClient.Schemas.MsiBusPredictionRead{
  creation_epoch: DateTime.t() | nil,
  g_minus_r: number() | nil,
  id: String.t() | nil,
  model_version: String.t() | nil,
  msi_confidence: number() | nil,
  predicted_bus_type: String.t() | nil,
  r_minus_i: number() | nil,
  satellite_id: String.t() | nil,
  session_epoch: DateTime.t() | nil
}

Functions

from_api(data)

Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.

to_api(struct)

Convert this struct into a map with the API's camelCase keys, ready to be JSON-encoded. Fields whose value is nil are omitted.