Portable JSON artifact for a resolved HostKit plan.
Summary
Functions
Decodes a JSON string into this struct.
Decodes a JSON string into this struct, raising on failure.
Dumps this struct into JSON-shaped data, respecting JSON field names.
Builds this struct from a decoded JSON map.
Builds this struct from a decoded JSON map, raising on failure.
Returns a JSON Schema-compatible schema map.
Returns a JSON Schema-compatible schema map.
Converts this struct into a JSON-shaped map.
Types
Functions
Decodes a JSON string into this struct.
Decodes a JSON string into this struct, raising on failure.
Dumps this struct into JSON-shaped data, respecting JSON field names.
Builds this struct from a decoded JSON map.
Builds this struct from a decoded JSON map, raising on failure.
@spec from_plan( HostKit.Plan.t(), keyword() ) :: t()
Returns a JSON Schema-compatible schema map.
@spec load( Path.t(), keyword() ) :: {:ok, HostKit.Plan.t()} | {:error, term()}
@spec save(Path.t(), HostKit.Plan.t(), keyword()) :: :ok | {:error, term()}
Returns a JSON Schema-compatible schema map.
Converts this struct into a JSON-shaped map.
@spec to_plan(t()) :: {:ok, HostKit.Plan.t()} | {:error, term()}