Skip to main content

Module rules_meta

Module rules_meta 

Source
Expand description

Canonical rule metadata shared by the runtime validator and the build-time code generator.

This module is the single source of truth for buf.validate rule identifiers, violation message text, and rule-combination tables that both validation engines must agree on byte-for-byte. The runtime crate (prost-protovalidate) consumes it while compiling evaluators; the build crate (prost-protovalidate-build) consumes it while emitting generated validators, embedding the results as literals.

Message text tracks the upstream protovalidate conformance corpus and may change in minor releases; it is not a stability surface of its own.

Modules§

any
Metadata for google.protobuf.Any rules.
boolean
Metadata for bool rules.
bytes
Metadata for bytes rules.
duration
Metadata for google.protobuf.Duration rules.
enumeration
Metadata for enum rules.
field_mask
Metadata for google.protobuf.FieldMask rules.
float
Canonical IEEE-754 handling shared by repeated.unique on float/double fields, in both the runtime evaluator and generated validators.
map
Metadata for map rules.
numeric
Metadata shared by all twelve proto numeric types (int32sfixed64, float, double).
repeated
Metadata for repeated rules.
string
Metadata for string rules.
timestamp
Metadata for google.protobuf.Timestamp rules.