pub fn slot_comparison_from_proto(
comparison: &SlotComparison,
) -> Result<SlotComparison, ProtoError>Expand description
Decode one slot comparison.
Graph-slot and unknown enum values are rejected: the wire carries S/P/O
only, and a silent fallback would let a comparison filter the wrong slot.
An empty term is rejected too: the generic term decoder would read it as
the default graph, which is never an S/P/O term, so a half-filled request
would silently wipe the result. Graph constraints belong in the
graph-filter fields, not in a slot comparison.