Lemma.ShowVersion (lemma_engine v0.9.2)

Copy Markdown View Source

Half-open [effective_from, effective_to) for one loaded temporal row, as returned in Lemma.Show.versions.

Summary

Functions

Builds a Lemma.ShowVersion from one entry of the decoded Lemma.show/4 JSON "versions" array. Both fields are absent (not null) from the API JSON when unbounded; Map.get/3 yields nil for either case.

Types

t()

@type t() :: %Lemma.ShowVersion{
  effective_from: String.t() | nil,
  effective_to: String.t() | nil
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Builds a Lemma.ShowVersion from one entry of the decoded Lemma.show/4 JSON "versions" array. Both fields are absent (not null) from the API JSON when unbounded; Map.get/3 yields nil for either case.