Trait PropValidator

Source
pub trait PropValidator<P> {
    // Required method
    fn validate(&self, props: &P) -> Result<(), PropValidationError>;
}
Expand description

Trait for props validation

Required Methods§

Source

fn validate(&self, props: &P) -> Result<(), PropValidationError>

Validate the props

Implementors§