Closed Arwalk closed 1 year ago
Can use a method check_validity(self: T) InvalidErrors!void { ... } to ensure the message adheres to restrictions and options before encoding and after decoding.
check_validity(self: T) InvalidErrors!void { ... }
Can be a first step for required fields on proto2
We're not gonna bother with proto, job has been do to handle required fields similarly to other implementations.
Can use a method
check_validity(self: T) InvalidErrors!void { ... }
to ensure the message adheres to restrictions and options before encoding and after decoding.Can be a first step for required fields on proto2