Skip to main content

FieldConstraintsDynExt

Trait FieldConstraintsDynExt 

Source
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§

Source

fn field_constraints_dynamic(&self) -> Option<DynamicMessage>

Returns the raw DynamicMessage for the buf.validate.field extension.

Implementations on Foreign Types§

Source§

impl FieldConstraintsDynExt for FieldDescriptor

Implementors§