Strukt.new

You're seeing just the callback new, go back to Strukt module for more information.

Specs

new() :: {:ok, struct()} | {:error, Ecto.Changeset.t()}

See new/1

Specs

new(Keyword.t() | map()) :: {:ok, struct()} | {:error, Ecto.Changeset.t()}

This callback can be overridden to provide custom initialization behavior.

The default implementation provided for you performs all of the necessary validation and autogeneration of fields with those options set.

NOTE: It is critical that if you do override this callback, that you call super/1 to run the default implementation at some point in your implementation.