ArchAstro.Types.Actor (archastro v0.2.0)

Copy Markdown

The entity that authored a message, either a human user or an agent.

Summary

Types

t()

@type t() :: %ArchAstro.Types.Actor{
  alias_: String.t() | ArchAstro.Unset.t(),
  id: String.t() | ArchAstro.Unset.t(),
  name: String.t() | ArchAstro.Unset.t(),
  profile_picture: ArchAstro.Types.ImageSource.t() | ArchAstro.Unset.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()