Forms

Forms

Overview

Runique provides a powerful form system inspired by Django. There are two approaches:

  1. Manual — Define fields via the RuniqueForm trait.
  2. Automatic — Derive a form from a model! schema with #[form(...)].

Forms are automatically extracted from requests via the Prisme extractor, handle validation (including via the validator crate for emails/URLs), CSRF, Argon2 password hashing, and can be saved directly to the database.