Skip to main content

decide

Function decide 

Source
pub fn decide<'r>(
    rules: &'r Value,
    tool: Option<&str>,
    input: Option<&Value>,
) -> Option<(usize, AppliedAction<'r>)>
Expand description

Decide which rule of a compiled ruleset (the {"rules": […]} value built by MockSet::rules) intercepts a call. First match wins; None means allow through. This mirrors oneharness mock’s decision over the same shape so the fake provider exercises identical semantics.