Struct Editor Variant Spec

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -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,
}

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

clone

fn clone(&self) -> EditorVariantSpec

clone_from

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

impl Copy for EditorVariantSpec

impl Copy for EditorVariantSpec