ArchAstro.Types.RoutinePreset (archastro v0.2.0)

Copy Markdown

A named preset that defines the execution model and constraints for a routine. Presets are shared definitions; individual routines reference a preset by name.

Summary

Types

t()

@type t() :: %ArchAstro.Types.RoutinePreset{
  applicable_events: [String.t()],
  chainable: boolean(),
  description: String.t(),
  label: String.t(),
  name: String.t(),
  sessionable: boolean(),
  unique: boolean()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()