Skip to navigation

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.

pub struct EditorVariantSpec {
pub label: &'static str,
pub tag: &'static str,
pub schema: fn() -> &'static EditorSchema,
pub default: fn() -> Value,
}

Referenced types: str, fn, EditorSchema, Value

One selectable variant of a tagged list entry.

Fields

label: &'static str

Human-readable variant label.

tag: &'static str

Serialized discriminator value.

schema: fn() -> &'static EditorSchema

Schema for the variant object.

default: fn() -> Value

Initial object value for the variant.

Trait Implementations

impl Clone for EditorVariantSpec

impl Clone for EditorVariantSpec

Referenced types: Clone, EditorVariantSpec

clone

fn clone(&self) -> EditorVariantSpec

Referenced types: clone, EditorVariantSpec

clone_from

fn clone_from(&mut self, source: &Self)

Referenced types: clone_from

impl Copy for EditorVariantSpec

impl Copy for EditorVariantSpec

Referenced types: Copy, EditorVariantSpec