Dry.Types.Struct (dry v0.1.9)

Represents the struct type

Examples:

schema do
  ttribute :field_1, Types.Struct
  attribute :field_2, Types.Struct.options(type: AnotherDryStruct)
  attribute :field_2, Types.Struct.options(optional: true)
  attribute :field_2, Types.Struct.options(default: %Struct{a: 1})
end

Link to this section Summary

Functions

Valid options are :type, :default and :optional

Link to this section Functions

Link to this function

options(opts \\ [])

Valid options are :type, :default and :optional