Noizu.EntityReference.Protocol protocol (Noizu Core v0.1.8)

Copy Markdown

Summary

Types

t()

All the types that implement this protocol.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

entity(subject, context)

@spec entity(any(), any()) :: {:ok, any()} | {:error, any()}

id(subject)

@spec id(any()) :: {:ok, any()} | {:error, any()}

kind(subject)

@spec kind(any()) :: {:ok, any()} | {:error, any()}

ref(subject)

@spec ref(any()) :: {:ok, any()} | {:error, any()}

sref(subject)

@spec sref(any()) :: {:ok, any()} | {:error, any()}