Spectre.Router.Adapter.RuleView (Spectre v0.3.4)

Copy Markdown View Source

Read-only projection of one rule visible to a router Adapter.

ref is the only accepted result reference. It combines scope and label so rules mounted from different Skills cannot become ambiguous.

Summary

Types

ref()

@type ref() :: {Spectre.Definition.scope(), atom()}

t()

@type t() :: %Spectre.Router.Adapter.RuleView{
  data: term(),
  flow: atom() | nil,
  flow_path: [atom()],
  global?: boolean(),
  label: atom(),
  opts: keyword(),
  ref: ref(),
  scope: Spectre.Definition.scope()
}