Search documentation of Plushie

# Plushie.Type.String (Plushie v0.7.2)

Copy Markdown View Source

String type. Accepts binaries and atoms (atoms are coerced to strings via `Atom.to_string/1`).

Supports `:min_length`, `:max_length`, and `:pattern` field constraints. Length constraints use `byte_size/1` guards; `:pattern` is validated at runtime only.

    field :name, :string, min_length: 1, max_length: 100

## Summary

### Types

t()

## Types

# t()

    @type t() :: String.t() | atom()