View Source Statestores.Schemas.Snapshot (spawn_statestores v1.3.2)

Snapshot schema

Summary

Types

@type t() :: %Statestores.Schemas.Snapshot{
  __meta__: term(),
  actor: term(),
  data: term(),
  data_type: term(),
  id: term(),
  inserted_at: term(),
  node: term(),
  revision: term(),
  status: term(),
  system: term(),
  tags: term(),
  updated_at: term()
}

Functions

Link to this function

changeset(event, attrs \\ %{})

View Source
@spec changeset(
  %Statestores.Schemas.Snapshot{
    __meta__: term(),
    actor: term(),
    data: term(),
    data_type: term(),
    id: term(),
    inserted_at: term(),
    node: term(),
    revision: term(),
    status: term(),
    system: term(),
    tags: term(),
    updated_at: term()
  },
  map()
) :: Ecto.Changeset.t() | {:error, Ecto.Changeset.t()}
Link to this function

from_record_tuple(tuple)

View Source
@spec from_record_tuple(term()) :: t()
Link to this function

to_record_list(snapshot)

View Source
@spec to_record_list(t()) :: [any()]