jellyflow-runtime 0.2.0

Headless store, rules, schema, profile, and change pipeline for Jellyflow.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::rules::{DeletePlan, Diagnostic, DiagnosticTarget};

pub(super) fn rejected(diagnostics: Vec<Diagnostic>) -> DeletePlan {
    DeletePlan::reject_with_diagnostics(diagnostics)
}

pub(super) fn delete_diagnostic(
    key: impl Into<String>,
    target: DiagnosticTarget,
    message: impl Into<String>,
) -> Diagnostic {
    Diagnostic::error(key, target, message)
}

pub(super) fn planning_diagnostic(message: impl Into<String>) -> Diagnostic {
    delete_diagnostic("delete.planning_failed", DiagnosticTarget::Graph, message)
}