pub trait TaskAccessor {
// Required methods
fn field_path(&self) -> Option<&str>;
fn id(&self) -> &str;
fn task_type(&self) -> &EvaluationTaskType;
fn operator(&self) -> &ComparisonOperator;
fn expected_value(&self) -> &Value;
fn depends_on(&self) -> &[String];
fn add_result(&mut self, result: AssertionResult);
}Required Methods§
Sourcefn field_path(&self) -> Option<&str>
fn field_path(&self) -> Option<&str>
Returns optional field path - avoids &Option<String> pattern
fn task_type(&self) -> &EvaluationTaskType
Sourcefn operator(&self) -> &ComparisonOperator
fn operator(&self) -> &ComparisonOperator
Returns reference to comparison operator
Sourcefn expected_value(&self) -> &Value
fn expected_value(&self) -> &Value
Returns reference to expected value
Sourcefn depends_on(&self) -> &[String]
fn depends_on(&self) -> &[String]
Returns slice of dependency IDs - more efficient than &Vec<String>