Generate a <struct>_set_<field>() convenience function