setEnabled

fun setEnabled(value: Boolean)


Enables/disables one rule without losing it, writing through persistenceBinding exactly like upsert. Matching already honors MockRule.persistence's enabled flag in decide, so this is the only mutation a rule-level toggle needs. Returns false when id is unknown.