pub trait FieldConstraintsDynExt {
// Required method
fn field_constraints_dynamic(&self) -> Option<DynamicMessage>;
}Expand description
Extension trait for extracting the DynamicMessage form of field constraints.
This is useful for the runtime validator which needs to read rule fields dynamically.
Required Methods§
Sourcefn field_constraints_dynamic(&self) -> Option<DynamicMessage>
fn field_constraints_dynamic(&self) -> Option<DynamicMessage>
Returns the raw DynamicMessage for the buf.validate.field extension.