Struct Instruction Config

View as Markdown

Generated from cargo doc --no-deps -p nemo-fabric-core.

pub struct InstructionConfig {
    pub content: String,
    pub mode: InstructionMode,
    pub extensions: BTreeMap<String, Value>,
}

One portable instruction value.

Fields

content: String

Instruction text.

mode: InstructionMode

How the instruction is applied.

extensions: BTreeMap<String, Value>

Additive instruction fields.

Trait Implementations

impl Clone for InstructionConfig

impl Clone for InstructionConfig

clone

fn clone(&self) -> InstructionConfig

clone_from

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

impl Debug for InstructionConfig

impl Debug for InstructionConfig

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for InstructionConfig

impl<'de> Deserialize<'de> for InstructionConfig

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl JsonSchema for InstructionConfig

impl JsonSchema for InstructionConfig

schema_name

fn schema_name() -> Cow<'static, str>

schema_id

fn schema_id() -> Cow<'static, str>

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

inline_schema

fn inline_schema() -> bool

impl PartialEq for InstructionConfig

impl PartialEq for InstructionConfig

eq

fn eq(&self, other: &InstructionConfig) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for InstructionConfig

impl Serialize for InstructionConfig

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl StructuralPartialEq for InstructionConfig

impl StructuralPartialEq for InstructionConfig