Skip to main content

Crate protify_build

Crate protify_build 

Source
Expand description

Build-time library for protify when using pre-built .proto files with protovalidate annotations.

  • cel — Enables CEL-based validation

Structs§

DescriptorData
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.
DescriptorDataConfig
Configures a DescriptorData instance 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 protovalidate annotations in the target packages, and returns an empty DescriptorData instance.