# `RuleSpec.set`

> Contract 2.0.0 · package sha256 `a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e` · generated from `configurator-runtime.d.ts` by `services/onsite-scripter/scripts/build-contract-docs.mjs`; edit the source, not this file.

Property of [`RuleSpec`](RuleSpec.md) · stable · since 2.0.0

```ts
set: PartState;
```

What it writes on every match. A [`Material`](Material.md) handle in it reads back as `{ materialId }` ([`MaterialInput`](MaterialInput.md)).

## Generic-API test (spec 3.1)

| Rule | Result |
| --- | --- |
| 1. Neutral name | pass: `set` names no product |
| 2. A precedent | pass: [Unity GameObject.Find](https://docs.unity3d.com/ScriptReference/GameObject.Find.html) (row `K7`); [DOM Document.querySelectorAll](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll) (row `K7`) |
| 3. Two apps, or labs | pass: 8 apps (ledger: app-4f16d2f6da, app-59c5b5751e, app-b362a81c85, app-b4ae2fce25, app-ceb4eccc72, app-ddfb017681, app-fc07850558, app-fc306ec3dc) |
| 4. The cheaper fix first | decided per need in Appendix B: rows `K7` at tier stable (a member only where no rule, data, asset or app code serves the need) |
