Skip to main content

allowed

Function allowed 

Source
pub(crate) fn allowed(
    state: &AppState,
    def: &JobDefinition,
    origin: Origin,
    prompt: bool,
) -> Result<(), Stop>
Expand description

Ok when def may be on, or why not. prompt is whether this is a turn-on that asks (a new job, a resume, an edit of what it runs or when), for an operator who has not yet said yes.