View Source Dx.Rule (dx v0.3.0)

Represents a rule, based on an individual record.

when

when

Nested map with data requirements and matching values.

Lists mean one of the values must match.

Negations can be expressed using {:not, value} or {:not, [values]}.

Link to this section Summary

Link to this section Types

@type t() :: %Dx.Rule{
  key: atom() | nil,
  type: (module() | nil) | nil,
  val: term() | nil,
  when: map()
}