AccessGrid.LedgerItem.CardTemplate (AccessGrid v0.1.0)

Copy Markdown View Source

Narrow card-template representation embedded in AccessGrid.LedgerItem.AccessPass. Returned with just enough fields to identify the template behind a ledger line; for the full template shape, use AccessGrid.Console.read_template/2.

Summary

Functions

Creates a LedgerItem.CardTemplate struct from an API response map.

Types

t()

@type t() :: %AccessGrid.LedgerItem.CardTemplate{
  id: String.t() | nil,
  name: String.t() | nil,
  platform: String.t() | nil,
  protocol: String.t() | nil,
  use_case: String.t() | nil
}

Functions

from_response(data)

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

Creates a LedgerItem.CardTemplate struct from an API response map.