Skip to content
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

Support Field Presence (proto3) #513

Closed
Tracked by #518
theduke opened this issue Jul 25, 2020 · 2 comments
Closed
Tracked by #518

Support Field Presence (proto3) #513

theduke opened this issue Jul 25, 2020 · 2 comments
Labels
rust-protobuf-v3 Issued to be fixed to release version 3

Comments

@theduke
Copy link

theduke commented Jul 25, 2020

Field presence is a new experimental feature that adds support for optional fields.

TLDR: it works in a somewhat hacky way by representing an optional field with a oneOf with only one variant.

https://github.com/protocolbuffers/protobuf/blob/master/docs/implementing_proto3_presence.md#satisfying-the-experimental-check

@stepancheg stepancheg mentioned this issue Aug 12, 2020
12 tasks
@stepancheg stepancheg added the rust-protobuf-v3 Issued to be fixed to release version 3 label Aug 12, 2020
stepancheg added a commit that referenced this issue Sep 28, 2020
@stepancheg
Copy link
Owner

stepancheg commented Apr 4, 2022

Implemented in version 3.0.0-alpha.9.

@theduke
Copy link
Author

theduke commented Apr 6, 2022

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rust-protobuf-v3 Issued to be fixed to release version 3
Projects
None yet
Development

No branches or pull requests

2 participants