AshVersioned.ActorValue protocol (ash_versioned v0.2.0)

Copy Markdown

Resolves the provided actor using the actor configuration.

Summary

Types

t()

All the types that implement this protocol.

Functions

Extracts the value of the actor for storage in a field described by config.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

actor_value(config, actor)

@spec actor_value(struct(), term()) :: {:ok, term()} | {:error, term()}

Extracts the value of the actor for storage in a field described by config.

Must return {:ok, term()} or {:error, term()}.