Expand description
Build-time library for protify when using pre-built .proto files with protovalidate annotations.
cel— Enables CEL-based validation
Structs§
- Descriptor
Data - A struct holding collected data from a protobuf descriptor.
This data can then be used to selectively apply attributes programmatically
through the helpers from the prost
Config. - Descriptor
Data Config - Configures a
DescriptorDatainstance to gather information from a protobuf descriptor, which can be useful to apply attributes programmatically to the target items. - Enum
- Data about a protobuf enum.
- Message
- Data about a protobuf message.
- Oneof
- Data about a protobuf oneof.
Functions§
- get_
proto_ files - A small utility that recursively collects all .proto files in a given directory and its subdirectories.
- set_
up_ validators - Sets up the validators defined via
protovalidateannotations in the target packages, and returns an emptyDescriptorDatainstance.