forms/config.rs
1//! The config form descriptor.
2
3use crate::descriptor::{Action, Form, TEXT, field};
4
5/// Set one of the user's config values; an empty value is stored as is.
6pub const CONFIG_SET: Form = Form {
7 name: "config-set",
8 title: "Set config",
9 fields: &[
10 field("key", "Key", TEXT, true),
11 field("value", "Value", TEXT, false),
12 ],
13 action: Action::Mutation,
14};