Skip to main content

Module fields

Module fields 

Source

Structs§

FieldAutoBigInt
Auto-increment BIGINT primary key. None until the row is inserted; the database generates the value.
FieldAutoInt
Auto-increment INTEGER primary key. None until the row is inserted; the database generates the value.
FieldBigInt
FieldBool
FieldBytes
FieldDate
FieldDateTime
FieldDecimal
FieldDouble
FieldEmail
Email field — validated on construction (inner value is private, see FieldVarchar).
FieldError
FieldFloat
FieldInt
FieldJson
FieldPassword
Password field — stores an Argon2id PHC hash, never the plaintext.
FieldRange
Integer bounded to MIN..=MAX (inner value is private, see FieldVarchar).
FieldSmallInt
FieldText
FieldTime
FieldUrl
URL field — basic validation (inner value is private, see FieldVarchar).
FieldUuid
FieldVarchar
VARCHAR with min/max length validation (in characters, not bytes).
ForeignKey
A foreign key reference: stores the primary key value of the related model. The value type follows the target’s primary key (Model::Pk): Uuid for FieldUuid, i32 for FieldAutoInt, i64 for FieldAutoBigInt. The column type in the schema and migrations follows it too.
ManyToMany
A many-to-many relation field. The pivot table is auto-generated by rango makemigrations.

Traits§

RangoField
Marker trait for all Rango field types.