View Source StrawHat.Error.ErrorMetadata (StrawHat v0.6.2)

Metadata used on StrawHat.Error.t/0. It is a representation of key value pair into StrawHat.Error.ErrorMetadata.t/0. Most likely used through StrawHat.Error.

Link to this section Summary

Types

t()
  • key: Key of the metadata.
  • value: Value of the metadata.

Link to this section Types

Specs

t() :: %StrawHat.Error.ErrorMetadata{key: String.t(), value: String.t()}
  • key: Key of the metadata.
  • value: Value of the metadata.

Link to this section Functions

Specs

new({String.t() | atom(), any()}) :: t()

Creates a StrawHat.Error.ErrorMetadata.t/0 from a tuple.

Specs

new(atom() | String.t(), any()) :: t()

Creates a StrawHat.Error.ErrorMetadata.t/0.

Specs

serialize(Keyword.t()) :: [t()]

Serializes a Keyword list into a list of StrawHat.Error.ErrorMetadata.t/0.