MetaSignature

Trait MetaSignature 

Source
pub trait MetaSignature: Send + Sync {
    // Required methods
    fn demos(&self) -> Vec<Example>;
    fn set_demos(&mut self, demos: Vec<Example>) -> Result<()>;
    fn instruction(&self) -> String;
    fn input_fields(&self) -> Value;
    fn output_fields(&self) -> Value;
    fn update_instruction(&mut self, instruction: String) -> Result<()>;
    fn append(&mut self, name: &str, value: Value) -> Result<()>;
}

Required Methods§

Source

fn demos(&self) -> Vec<Example>

Source

fn set_demos(&mut self, demos: Vec<Example>) -> Result<()>

Source

fn instruction(&self) -> String

Source

fn input_fields(&self) -> Value

Source

fn output_fields(&self) -> Value

Source

fn update_instruction(&mut self, instruction: String) -> Result<()>

Source

fn append(&mut self, name: &str, value: Value) -> Result<()>

Implementors§