Kreuzberg.YearRange (kreuzberg v4.9.5)

Copy Markdown View Source

Year range for bibliographic metadata.

Matches the Rust YearRange struct.

Fields

  • :min - Minimum year
  • :max - Maximum year
  • :years - List of individual years

Summary

Types

t()

@type t() :: %Kreuzberg.YearRange{
  max: non_neg_integer() | nil,
  min: non_neg_integer() | nil,
  years: [non_neg_integer()]
}

Functions

from_map(data)

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

to_map(meta)

@spec to_map(t()) :: map()