Skip to main content

ClientGenerator

Trait ClientGenerator 

Source
pub trait ClientGenerator {
    // Required method
    fn generate(&self, config: &GeneratorConfig) -> Result<Vec<PathBuf>, Error>;
}
Expand description

Trait implemented by every artifact generator.

generate writes its artifacts to config.output_dir and returns the list of paths it created. Implementations must be pure (no network, no subprocess) — file I/O only.

Required Methods§

Source

fn generate(&self, config: &GeneratorConfig) -> Result<Vec<PathBuf>, Error>

Generate artifact file(s) and return their paths.

Implementors§