ARC data types: status codes and API response structures.
Summary
Functions
All valid status atoms.
Parses a status string like "MINED" to an atom.
Returns the integer code for an ARC status atom.
Returns the string representation for an ARC status atom.
Types
Functions
@spec all_statuses() :: [arc_status()]
All valid status atoms.
@spec parse_status(String.t()) :: {:ok, arc_status()} | :error
Parses a status string like "MINED" to an atom.
@spec status_code(arc_status()) :: integer()
Returns the integer code for an ARC status atom.
@spec status_string(arc_status()) :: String.t()
Returns the string representation for an ARC status atom.