GroundPlane.Boundary.DispatchResult (GroundPlane Contracts v0.1.0)

Copy Markdown View Source

Serializable response from a boundary protocol handler.

Summary

Types

t()

@type t() :: %GroundPlane.Boundary.DispatchResult{
  error: map() | nil,
  metadata: map(),
  receipt_refs: [String.t()],
  response: map() | nil,
  response_ref: String.t() | nil,
  status: String.t()
}

Functions

new(attrs)

@spec new(map() | keyword()) :: {:ok, t()} | {:error, term()}

new!(attrs)

@spec new!(map() | keyword()) :: t()

to_map(result)

@spec to_map(t()) :: map()