Skip to main content

ValidationContext

Trait ValidationContext 

Source
pub trait ValidationContext {
    // Required methods
    fn add_error(&mut self, code: String, message: String);
    fn is_valid(&self) -> bool;
    fn get_errors(&self) -> &[BrddError];
}
Expand description

A subset of the context that allows adding errors and checking validity.

Required Methods§

Source

fn add_error(&mut self, code: String, message: String)

Source

fn is_valid(&self) -> bool

Source

fn get_errors(&self) -> &[BrddError]

Implementors§