Accrue.Entitlements.Source.Outcome (accrue v1.5.1)

Copy Markdown View Source

A bounded, host-facing result for one source/capability pair.

Summary

Types

t()

@type t() :: %Accrue.Entitlements.Source.Outcome{
  capability: Accrue.Entitlements.Source.capability(),
  guidance: %{
    :key => atom(),
    :text => String.t(),
    :action_label => String.t(),
    optional(:url) => String.t()
  },
  source: Accrue.Entitlements.Source.source(),
  state: Accrue.Entitlements.Source.state()
}