Skip to main content

ProjectInitializer

Trait ProjectInitializer 

Source
pub trait ProjectInitializer: Send + Sync {
    // Required methods
    fn generate_project_structure<'life0, 'life1, 'async_trait>(
        &'life0 self,
        context: &'life1 InitContext,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn print_next_steps(&self, context: &InitContext);
}
Expand description

Interface for language-specific project initialization.

Required Methods§

Source

fn generate_project_structure<'life0, 'life1, 'async_trait>( &'life0 self, context: &'life1 InitContext, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn print_next_steps(&self, context: &InitContext)

Implementors§