AccessGrid.CardTemplate.Result (AccessGrid v0.1.0)

Copy Markdown View Source

Represents the response from template create/update operations.

This is a minimal acknowledgment containing only the template ID, estimated publishing date, and metadata. For full template data, use AccessGrid.Console.read_template/2 which returns AccessGrid.CardTemplate.

Summary

Functions

Creates a Result struct from an API response map.

Types

t()

@type t() :: %AccessGrid.CardTemplate.Result{
  estimated_publishing_date: String.t() | nil,
  id: String.t() | nil,
  metadata: map()
}

Functions

from_response(data)

@spec from_response(map()) :: t()

Creates a Result struct from an API response map.