Jido.Character.Schema.Identity (Jido Character v1.0.0)

Copy Markdown View Source

Character identity - who the character is.

Summary

Functions

Returns the Zoi schema for Identity

Types

t()

@type t() :: %Jido.Character.Schema.Identity{
  age: nil | nil | integer() | binary(),
  background: nil | nil | binary(),
  facts: [binary()],
  role: nil | nil | binary()
}

Functions

new(attrs \\ %{})

@spec new(map()) :: {:ok, t()} | {:error, term()}

new!(attrs \\ %{})

@spec new!(map()) :: t()

schema()

Returns the Zoi schema for Identity