I tried this, but it doesn’t work if @enforce_keys are defined:
iex(4)> Map.keys(%Date{})
** (ArgumentError) the following keys must also be given when building struct Date: [:year, :month, :day]
(elixir) expanding struct: Date.__struct__/1
iex:4: (file)
At first glance it does not seem that any function is created for this either: