View Source Noizu.ElixirCore.PartialObjectCheck.FieldConstraint (noizu_core v1.0.28)

The FieldConstraint struct represents a constraint on a specific field of a partial object. It includes information about whether the field is required, its type constraint, and its value constraint.

The FieldConstraint is used as part of the PartialObjectCheck to define the expected shape and constraints of an object for asserting purposes.

Link to this section Summary

Link to this section Types

@type t() :: %Noizu.ElixirCore.PartialObjectCheck.FieldConstraint{
  assert: :pending | :met | :unmet | :not_applicable,
  required: true | false,
  type_constraint: Noizu.ElixirCore.PartialObjectCheck.TypeConstraint.t() | nil,
  value_constraint:
    Noizu.ElixirCore.PartialObjectCheck.ValueConstraint.t() | nil
}

Link to this section Functions