ArchAstro.Types.KeyValueStorageEntryWithUser (archastro v0.2.0)

Copy Markdown

A key-value storage entry enriched with owner information. Developer and server-to-server callers receive user_email and user_name populated; end-user (user-JWT) callers receive those fields as null.

Summary

Types

t()

@type t() :: %ArchAstro.Types.KeyValueStorageEntryWithUser{
  created_at: DateTime.t(),
  key: String.t(),
  updated_at: DateTime.t(),
  user: String.t(),
  user_email: String.t() | ArchAstro.Unset.t(),
  user_name: String.t() | ArchAstro.Unset.t(),
  value: String.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()