Skip to main content

evaluate_model

Function evaluate_model 

Source
pub fn evaluate_model(
    graph: &Graph,
    contract: &ApplicationContractDocument,
    facts: &Facts,
) -> Result<Vec<Value>, String>
Expand description

Evaluate every policy of graph (after load_instances) and every operation-bound policy against the supplied operation inputs. Rows are ordered by policy id, then operation name; bindings by instance name.