Expand description
Derive macros for fastauth. Use them through
fastauth or fastauth_core (feature macros), which re-export each derive next to the
trait it implements.
The generated code names fastauth_core when the crate depends on it directly, and
fastauth::__private::core when it only depends on the fastauth facade.
Derive Macrosยง
- Auth
Error - Implements
From<E> for AuthErrorandErrorCodesfor an enum of plugin errors. - Fields
- Implements
FieldsandOnTablefor a struct of columns added to an existing table, plus a typedColconstant per field (two_factor_enabledbecomesTWO_FACTOR_ENABLED). - Model
- Implements
ModelandOnTable<Table = Self>for a table, plus a typedColconstant per field.