Commit c5c58e1
feat(gRPC): field masking and generation (#9128)
# Description of change
- Ported field masking mechanism, including
- The `field` module
- The `iota-proto-build` crate to generate fields, so we can use
`FieldMaskUtil::validate` to verify the client-requested field paths.
- Change `EventID` to `EventId` to meet `prost`'s naming convention, so
the generated Rust code from `protobuf` can be used without additional
conversion (like change `ID` to `Id`).
## Links to any relevant issues
Part of #8688
## How the change has been tested
- [x] Basic tests (linting, compilation, formatting, unit/integration
tests)
- [ ] Patch-specific tests (correctness, functionality coverage)
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have checked that new and existing unit tests pass locally with
my changes
---------
Co-authored-by: muXxer <git@muxxer.de>1 parent f6aaba4 commit c5c58e1
File tree
23 files changed
+3219
-145
lines changed- .github
- actions/diffs
- crates
- iota-grpc-types
- proto/iota/grpc/v0
- src
- field
- proto_generated
- iota-proto-build
- src
- scripts
23 files changed
+3219
-145
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
0 commit comments