generate anonymous struct accessors