Jidoka.Memory.WriteRequest (Jidoka v0.9.0)

Copy Markdown View Source

Request to write one memory entry.

Summary

Functions

Builds a memory write request from keyword or map attributes.

Builds a memory write request and raises if the attributes are invalid.

Returns the Zoi schema for a memory write request.

Types

t()

@type t() :: %Jidoka.Memory.WriteRequest{entry: term(), metadata: map()}

Functions

new(attrs)

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

Builds a memory write request from keyword or map attributes.

new!(attrs)

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

Builds a memory write request and raises if the attributes are invalid.

schema()

@spec schema() :: Zoi.schema()

Returns the Zoi schema for a memory write request.