Skip to main content

ActionNodeCodeGen

Trait ActionNodeCodeGen 

Source
pub trait ActionNodeCodeGen {
    // Required methods
    fn generate_code(&self, node_id: &str) -> String;
    fn required_imports(&self) -> Vec<&'static str>;
    fn required_dependencies(&self) -> Vec<(&'static str, &'static str)>;
}
Expand description

Trait for generating Rust code from action node configurations

Required Methods§

Source

fn generate_code(&self, node_id: &str) -> String

Generate the Rust code for this action node

Source

fn required_imports(&self) -> Vec<&'static str>

Generate any required imports for this action node

Source

fn required_dependencies(&self) -> Vec<(&'static str, &'static str)>

Generate any required Cargo dependencies for this action node

Implementors§