pub struct SettingsKey {
pub path: String,
pub leaf: String,
pub group: Vec<String>,
pub pattern: String,
pub kind: SettingKind,
pub value: Value,
pub class: EffectClass,
pub edit: SettingsEdit,
}Expand description
One key’s effective value and the class that says when a change lands.
Hand-written Debug: a key’s value can be an account token, and the frame
is the page’s read rather than a diagnostic. The class and path stay
legible; the value never prints.
Fields§
§path: StringThe concrete key path, with the instance where the table repeats:
server.port, accounts.Subspace.token.
leaf: StringThe key’s own name as a row draws it: the catalogue key’s leaf, or
the slug or flag a repeated key names. A name may contain dots, so
a reader cannot cut it from path.
group: Vec<String>The instance names the row belongs to, from the table’s repeat keys: an account, an org and a project, a Slack table and workspace, a model, a server table. Empty when the area’s keys do not repeat.
pattern: StringThe catalogue pattern the path fills, so the writer can locate the
TOML item without re-parsing a display path: accounts[].token.
kind: SettingKind§value: ValueIn the shape kind names: a JSON string, number, bool, array of
strings, or object of string values. null for a key the file does
not set.
class: EffectClass§edit: SettingsEdit