RelayMark.Resource (relay_mark_elixir v0.5.1)

Copy Markdown View Source

RelayMark resource struct.

Summary

Types

t()

@type t() :: %RelayMark.Resource{
  id: String.t(),
  label: String.t() | nil,
  props: map(),
  scope: String.t() | nil,
  type: String.t(),
  uri: String.t() | nil
}

Functions

from_map(map)

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

scripture_release(resource)

@spec scripture_release(t()) :: {:ok, RelayMark.Scripture.Release.t()} | :error