View Source Holidex.RegionalHoliday (Holidex v0.1.4)

Defines the structure of a regional holiday.

Summary

Types

@type category() :: :national | :federal | :regional | :religious | :other
@type country_code() :: atom()
@type region() :: atom()
@type t() :: %Holidex.RegionalHoliday{
  categories: [category()],
  country: country_code(),
  date: Date.t(),
  description: String.t() | nil,
  name: String.t(),
  observance_date: Date.t(),
  region: region()
}