setters for fields of generic structs