Skip to main content

classify

Function classify 

Source
pub fn classify(
    gwk_present: bool,
    contract_sha256: Option<String>,
    foreign_objects: Vec<String>,
) -> TargetState
Expand description

Decide what a target database is, from facts already queried out of it.

Split from the queries so the decision table is testable without a server; inspect is the thin part that gathers the facts.