pub fn classify_field(
f: &AdminField,
context: Option<&ContextConfig>,
) -> FieldRoleExpand description
Assign a FieldRole to one field, taking context into account.
Order of precedence (highest first):
- Country-scoped PII names (
personnummerunderSE). - Industry-scoped opaque identifiers (
patient_idunderhealthcare,balanceunderbanking). - GDPR-scoped generics (
email,phone). - Shape:
id,*_id,status, bool, datetime, numeric. - Fallback:
PlainText.