Skip to main content

classify_field

Function classify_field 

Source
pub fn classify_field(f: &AdminField) -> FieldRole
Expand description

Assign a FieldRole to one field.

Order of precedence (highest first):

  1. Shape: id, email, phone, status, bool, datetime, FK, numeric.
  2. Fallback: PlainText.