You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0609]: no field `data` on type `&Foo`
--> /protobuf-build-test/target/debug/build/oneof-7aa1b7e9780d5143/out/protos/group.rs:63:17
|
63 | if self.data.is_none() {
| ^^^^ unknown field
|
= note: available field is: `special_fields`
It seems that a group is merely rendered as a comment in the generated output struct:
// @@protoc_insertion_point(message:Foo)#[derive(PartialEq,Clone,Default,Debug)]pubstructFoo{// message fields// data: <group> <------------------------------// special fields// @@protoc_insertion_point(special_field:Foo.special_fields)pubspecial_fields:::protobuf::SpecialFields,}
Perhaps it should be rendered as a data: Option<foo::Data>, ?
The text was updated successfully, but these errors were encountered:
Produces compile error:
It seems that a group is merely rendered as a comment in the generated output struct:
Perhaps it should be rendered as a
data: Option<foo::Data>,
?The text was updated successfully, but these errors were encountered: