allow named structs to appears as method params and results