Skip to main content

Module forms

Module forms 

Source
Expand description

Form system — fields, validation, Tera rendering, Prisme extractor, model forms.

Re-exports§

pub use base::*;
pub use extractor::*;
pub use field::*;
pub use fields::*;
pub use form::*;
pub use generic::*;
pub use model_form::*;
pub use options::*;
pub use prisme::*;
pub use renderer::*;
pub use validator::*;

Modules§

base
FormField trait and FieldConfig structure: common base for all form fields.
extractor
Prisme: non-generic CSRF + body extractor integrated into the Request pipeline.
field
RuniqueForm trait: common interface for all Runique forms.
fields
Form field types — text, number, boolean, choice, datetime, file, hidden, special.
form
Forms — main form container: fields, validation, rendering, CSRF management.
generic
Generic field GenericField: unified enum to dispatch to any field type.
model_form
ModelForm trait — links a form to a ModelSchema, generates fields automatically.
options
Field validation options — LengthConstraint and BoolChoice.
prisme
Prisme pipeline — sentinel (access) → CSRF → parsing.
renderer
HTML rendering of form fields via Tera with fallback to internal templates.
validator
Form validation: ValidationError and FormValidator with error accumulation.

Traits§

FormEntity
Associates a form with a SeaORM entity.