Current section
Files
Jump to
Current section
Files
lib/ex_oura/client/public_sample.ex
defmodule ExOura.Client.PublicSample do
@moduledoc """
Provides struct and type for a PublicSample
"""
@type t :: %__MODULE__{interval: number, items: [number | nil], timestamp: String.t()}
defstruct [:interval, :items, :timestamp]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[interval: :number, items: [union: [:number, :null]], timestamp: :string]
end
end