pub struct GroupMemberFieldGroupPatch {
pub default_value: Value,
pub name: Option<String>,
pub name_in_signup_form: Option<Option<String>>,
pub note: Option<Option<String>>,
pub note_in_signup_form: Option<Option<String>>,
pub options: Option<Option<Vec<GroupMemberFieldGroupOptionPatch>>>,
pub reference_name: Option<String>,
pub required_in_registration_form: Option<bool>,
pub security_level: Option<i64>,
pub sort_key: Option<i64>,
pub use_in_registration_form: Option<bool>,
pub extra: Map<String, Value>,
}Expand description
Partial membership field update. Omitted fields are preserved. options, when supplied, replaces the full list and can modify stored member selections. Field type cannot be changed.
Fields§
§default_value: ValueDefault value, validated according to fieldTypeCode. Checkbox accepts booleans and supported boolean strings; number accepts numbers or numeric strings. Date/datetime require date/Zulu date-time strings. Text and textarea accept up to 4000 characters; api accepts up to 255. Select/radioselect accept an option name or ID; multiselect accepts an array, comma-separated string or JSON-encoded array of option names/IDs. Responses normalize scalar values to strings and multiselect values to arrays of option-ID strings. Null clears the default.
name: Option<String>Internal field name shown to administrators.
name_in_signup_form: Option<Option<String>>Optional field name shown in the signup form. Null or text identical to the internal name/note is stored as null, allowing the internal text to be used.
None leaves the field out, Some(None) sends null.
note: Option<Option<String>>Internal field description.
None leaves the field out, Some(None) sends null.
note_in_signup_form: Option<Option<String>>Optional field description shown in the signup form. Null or text identical to the internal name/note is stored as null, allowing the internal text to be used.
None leaves the field out, Some(None) sends null.
options: Option<Option<Vec<GroupMemberFieldGroupOptionPatch>>>Full replacement list. Retain numeric IDs of existing choices; omitted choices are deleted and removed from member values. [] removes all choices. Current backend behavior for null rebuilds existing labels with new IDs, which also clears selections using the previous IDs; preserve the list by omitting options instead.
None leaves the field out, Some(None) sends null.
reference_name: Option<String>Machine-readable key, unique within this group. Changing it changes the key used by reference-name clients; existing numeric field IDs remain unchanged.
required_in_registration_form: Option<bool>Whether this field is mandatory in the signup form.
security_level: Option<i64>Security level required to see and edit this field.
sort_key: Option<i64>Sort order among group member fields. Defaults to 0.
use_in_registration_form: Option<bool>Whether this field is shown in the signup form.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.