rust struct private method