ExecutionPlane.Authority.Ref (execution_plane v0.1.0)

Copy Markdown View Source

Opaque authority reference. The root carries it and never interprets policy semantics.

Summary

Types

t()

@type t() :: %ExecutionPlane.Authority.Ref{
  audience: term(),
  contract_version: term(),
  expires_at: term(),
  issued_at: term(),
  metadata: term(),
  payload_hash: term(),
  ref: term()
}

Functions

dump(value)

@spec dump(struct()) :: map()

from_json!(json)

@spec from_json!(String.t()) :: struct()

load(attrs)

@spec load(map() | keyword() | struct()) :: {:ok, struct()} | {:error, Exception.t()}

load!(attrs)

@spec load!(map() | keyword() | struct()) :: struct()

new(value)

@spec new(map() | keyword() | struct()) :: {:ok, struct()} | {:error, Exception.t()}

new!(attrs \\ %{})

@spec new!(map() | keyword() | struct()) :: struct()

to_json!(value)

@spec to_json!(struct()) :: String.t()