# `FeaturevisorSchemas.Constraints`
[🔗](https://github.com/featurevisor/featurevisor-elixir/blob/v2.1.0/lib/featurevisor_schemas/structs.ex#L49)

The HTML validation attributes a field's rules imply, nil where the rules set none.

# `t`

```elixir
@type t() :: %FeaturevisorSchemas.Constraints{
  max: number() | nil,
  max_length: non_neg_integer() | nil,
  min: number() | nil,
  min_length: non_neg_integer() | nil,
  multiple: boolean(),
  required: boolean(),
  step: pos_integer() | nil
}
```

# `attributes`

```elixir
@spec attributes(t()) :: map()
```

The constraints as HTML attributes, only those set, such as `required` and `maxlength`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
