Skip to main content

Module model

Module model 

Source

Structs§

Col
A typed column: comparing it with the wrong Rust type, or using it on another table, does not compile.

Traits§

Fields
A typed view over some columns of an existing table (user or session). The app’s .user_fields::<U>() and each plugin’s UserFields/SessionFields implement it. #[derive(Fields)] writes this.
Model
A table owned by core or a plugin. #[derive(Model)] writes this.
OnTable
Which table a typed column lives on. Models point at themselves; Fields point at the table they extend, so TwoFactorUser::TWO_FACTOR_ENABLED can filter find::<User>.