Skip to main content

decision_to_approved

Function decision_to_approved 

Source
pub fn decision_to_approved(
    decision: Decision,
    ask_fn: impl FnOnce() -> bool,
) -> bool
Expand description

Convenience: fold a Decision into the boolean “may this call proceed” the tool-dispatch gate needs, given a resolve_ask-style callback for the Ask case. Deny never reaches ask_fn (hard floor); Allow never needs it either.