Structure.getFieldType

gobject.types.GType getFieldType(string fieldname)

Finds the field with the given name, and returns the type of the value it contains. If the field is not found, G_TYPE_INVALID is returned.

Parameters

fieldnamethe name of the field

Returns

the #GValue of the field