Domo.required_fields

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

Specs

required_fields() :: [atom()]

Specs

required_fields(opts :: keyword()) :: [atom()]

Returns the list of struct's fields having type others then nil or any().

Does not return meta fields with __underscored__ names.

Useful for validation of the required fields for emptiness. F.e. with validate_required/2 call in the Ecto changeset.

Options

  • :include_meta - when set to true, adds fields with __underscored__ names to the return list. Default is false.