Skip to main content

gate_kind

Function gate_kind 

Source
pub fn gate_kind(
    command: &str,
    explanation: &Explanation,
    approved: &dyn Fn(&str) -> bool,
    approved_by_default: &dyn Fn(&str) -> bool,
) -> GateKind
Expand description

The kind of the gated command, from its text and its explanation.

approved answers “is this segment approved?” at the caller’s level; approved_by_default answers it at the default level.