ArchAstro.Types.Operations.PostApiV1AgentsAgentSearch.Response.Nested.DataItemVariant1 (archastro v0.2.0)

Copy Markdown

DataItemVariant1 API model.

Summary

Types

t()

@type t() ::
  %ArchAstro.Types.Operations.PostApiV1AgentsAgentSearch.Response.Nested.DataItemVariant1{
    content: String.t() | ArchAstro.Unset.t(),
    content_type: String.t() | ArchAstro.Unset.t(),
    created_at: DateTime.t() | ArchAstro.Unset.t(),
    id: String.t(),
    kind: String.t(),
    metadata:
      %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
    raw_content:
      %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
    type: String.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()