Toolnexus.Answer (toolnexus v0.9.4)

Copy Markdown View Source

A §10 answer: {id, ok, data?} — keys byte-identical across ports.

Summary

Functions

Decode from a JSON-shaped map (string keys).

Types

t()

@type t() :: %Toolnexus.Answer{
  data: map() | nil,
  id: String.t(),
  ok: boolean(),
  reason: String.t() | nil
}

Functions

from_map(m)

@spec from_map(map()) :: t()

Decode from a JSON-shaped map (string keys).