Function macro_tools::orphan::item_struct::first_field_name

source ยท
pub fn first_field_name(t: &ItemStruct) -> Result<Option<Ident>>
Expand description

Retrieves the name of the first field of the struct, if available.

Returns Some with the field identifier for named fields, or None for unnamed fields. Returns an error if the struct has no fields