-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reflection to get mutable message #407
Comments
It is implemented in master. But it is not possible (or very hard) to backport it to the stable version without breaking backwards compatibility. It will be released in the next major version (3). I think next major version will be released in a couple months. JFYI, before releasing next major version I'd like to fix this: #339 But I don't know how to fix it.
Why? Maybe you simply want to use |
Thanks for your help. I'm using Master branch, but I still see "unimplemented!()" (protobuf\src\reflect\field.rs line 170). |
Looking... |
My bad. You can now do Looking how hard would it be to implement |
Implemented in 3d532dd. |
Hello,
In "protobuf::reflect::FieldDescriptor", the function "pub fn mut_message<'a>(&self, _m: &'a mut Message) -> &'a mut Message" is not yet implemented. Could you please let us know if you have any plan to implement it? if not, is there any work-around?
I'd like to use reflection to set all fields in a Message to its default value (traverse the message and use get_singular_field_or_default() on FieldDescriptor).
Thank you very much,
C
The text was updated successfully, but these errors were encountered: