Trait Validator
Source pub trait Validator {
// Required method
fn validate(&self, ast: &OCAAst, command: Command) -> Result<bool, Error>;
}
Expand description
Validates given commands against existing valid OCA AST
§Arguments
ast
- valid OCA AST
command
- Command to validate against AST
§Returns
Result<bool, Error>
- Result of validation