Struct Editor Field Spec
Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
Referenced types: str, EditorFieldKind, bool, Option, fn, EditorSchema, Value, EditorListItemSpec, EditorTaggedUnionSpec
Static editor metadata for one configuration field.
Fields
name: &'static str
Serialized field name.
label: &'static str
Human-readable label.
kind: EditorFieldKind
Editor control shape.
enum_values: &'static [&'static str]
Allowed display choices, when an enum field kind is used.
optional: bool
Whether 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.
list_item: Option<&'static EditorListItemSpec>
Description of collection entries, when EditorFieldKind::List or EditorFieldKind::Map is used.
tagged_union: Option<&'static EditorTaggedUnionSpec>
Variant metadata, when EditorFieldKind::TaggedUnion or EditorFieldKind::DiscriminatedSection is used.
Implementations
impl EditorFieldSpec
Referenced types: EditorFieldSpec
schema
Referenced types: Option, EditorSchema
Returns the nested schema for this field, if it is a section.
default_value
Referenced types: Option, Value
Returns the typed default value for this field’s nested section.
Trait Implementations
impl Clone for EditorFieldSpec
Referenced types: Clone, EditorFieldSpec
clone
Referenced types: clone, EditorFieldSpec
clone_from
Referenced types: clone_from
impl Copy for EditorFieldSpec
Referenced types: Copy, EditorFieldSpec