[Rust] required fields results in Option<T>
, and non-required fields result in T
#3437
Labels
Bug
Something isn't working
GitHub repository with your minimal reproducible example (do not leave this field blank or fill out this field with "github.com/bufbuild/buf" or we will automatically close your issue, see the instructions above!)
N/A
Commands
Output
Expected Output
Since
SubjectReference
is defined as follows:I expected the output to:
Anything else?
Notice: in
.proto
file, the filedobject
was marked asrequired
, and the fieldoptional_relation
is not marked as required. I expect the output to use RustOption
to match with the proto schema.The text was updated successfully, but these errors were encountered: