Skip to main content

base_entity_rule_allows

Function base_entity_rule_allows 

Source
pub fn base_entity_rule_allows(
    src_kind: &str,
    relation: EdgeRelation,
    tgt_kind: &str,
) -> bool
Expand description

true if (src_kind, relation, tgt_kind) is in the base entity endpoint allowlist. Pure and DB-free — exposed alongside base_entity_endpoint_rules so offline consumers (e.g. kkernel kg validate) can apply the exact same base-table membership test the live validator uses, instead of re-deriving a parallel .any() predicate over a hand-copied allowlist.