AshOnetime.Resource.Response (ash_onetime v0.4.0)

Copy Markdown View Source

The normalized response contract for a protected action: the codec, the projected field allowlist, the result classifier, and codec options.

Returned as the :response field of an AshOnetime.Resource.Protection. Built by the DSL from the response entity on a protect block; read with AshOnetime.Resource.Info. Response-size limits are declared on the protect block's limits option (the single, unified vocabulary), not on the response entity.

Summary

Types

t()

@type t() :: %AshOnetime.Resource.Response{
  __spark_metadata__: Spark.Dsl.Entity.spark_meta(),
  classify: module() | nil,
  codec: module(),
  codec_opts: Keyword.t(),
  fields: [atom()]
}