Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub struct EditorFieldSpec {
pub name: &'static str,
pub label: &'static str,
pub kind: EditorFieldKind,
pub enum_values: &'static [&'static str],
pub optional: bool,
pub nested_schema: Option<fn() -> &'static EditorSchema>,
pub nested_default: Option<fn() -> Value>,
}
Static editor metadata for one configuration field.
name: &'static strSerialized field name.
label: &'static strHuman-readable label.
kind: EditorFieldKindEditor control shape.
enum_values: &'static [&'static str]Allowed string enum values, when EditorFieldKind::Enum is used.
optional: boolWhether the field is represented as an Option<T> in Rust.
nested_schema: Option<fn() -> &'static EditorSchema>Nested editor schema for section fields.
nested_default: Option<fn() -> Value>Default value for a nested section.
impl EditorFieldSpecimpl EditorFieldSpec
schemapub fn schema(self) -> Option<&'static EditorSchema>
Returns the nested schema for this field, if it is a section.
default_valuepub fn default_value(self) -> Option<Json>
Returns the typed default value for this field’s nested section.
impl Clone for EditorFieldSpecimpl Clone for EditorFieldSpec
clonefn clone(&self) -> EditorFieldSpec
clone_fromfn clone_from(&mut self, source: &Self)
impl Copy for EditorFieldSpecimpl Copy for EditorFieldSpec