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

Copy Markdown View Source

Personality trait with optional intensity (0.0-1.0).

Summary

Functions

Returns the Zoi schema for Trait

Types

t()

@type t() :: %Jido.Character.Schema.Trait{intensity: float(), name: binary()}

Functions

new(attrs)

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

new!(attrs)

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

schema()

Returns the Zoi schema for Trait