classify_field_type

Function classify_field_type 

Source
pub(crate) fn classify_field_type(ty: &Type) -> Result<FieldKind<'_>>
Expand description

Classify a field based on its type.

Determines if a field is a direct value or a mapping. Nested mappings like Mapping<K, Mapping<K2, V>> are handled automatically since the value type includes the full nested type.