pub fn gate_kind(
command: &str,
explanation: &Explanation,
approved: &dyn Fn(&str) -> bool,
approved_by_default: &dyn Fn(&str) -> bool,
) -> GateKindExpand 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.