Structure.hasField

bool hasField(string fieldname)

Check if structure contains a field named fieldname.

Parameters

fieldnamethe name of a field

Returns

true if the structure contains a field with the given name