name struct in "field `...` is private" error