Trait ValidationRule

Source
pub trait ValidationRule: Send + Sync {
    // Required methods
    fn validate(
        &self,
        _ctx: &mut OperationVisitorContext<'_>,
        _error_collector: &mut ValidationErrorContext,
    );
    fn error_code<'a>(&self) -> &'a str;
}

Required Methods§

Source

fn validate( &self, _ctx: &mut OperationVisitorContext<'_>, _error_collector: &mut ValidationErrorContext, )

Source

fn error_code<'a>(&self) -> &'a str

Implementors§