Structs§
- Field
Auto BigInt - Auto-increment
BIGINTprimary key.Noneuntil the row is inserted; the database generates the value. - Field
Auto Int - Auto-increment
INTEGERprimary key.Noneuntil the row is inserted; the database generates the value. - Field
BigInt - Field
Bool - Field
Bytes - Field
Date - Field
Date Time - Field
Decimal - Field
Double - Field
Email - Email field — validated on construction (inner value is private, see
FieldVarchar). - Field
Error - Field
Float - Field
Int - Field
Json - Field
Password - Password field — stores an Argon2id PHC hash, never the plaintext.
- Field
Range - Integer bounded to
MIN..=MAX(inner value is private, seeFieldVarchar). - Field
Small Int - Field
Text - Field
Time - Field
Url - URL field — basic validation (inner value is private, see
FieldVarchar). - Field
Uuid - Field
Varchar - VARCHAR with min/max length validation (in characters, not bytes).
- Foreign
Key - A foreign key reference: stores the primary key value of the related model.
The value type follows the target’s primary key (
Model::Pk):UuidforFieldUuid,i32forFieldAutoInt,i64forFieldAutoBigInt. The column type in the schema and migrations follows it too. - Many
ToMany - A many-to-many relation field.
The pivot table is auto-generated by
rango makemigrations.
Traits§
- Rango
Field - Marker trait for all Rango field types.