Skip to main content

CreateProject

Trait CreateProject 

Source
pub trait CreateProject {
    // Required method
    fn create_project(&self, name: &str, path: &PathBuf) -> Result<()>;
}
Expand description

模板项目创建API接口

Required Methods§

Source

fn create_project(&self, name: &str, path: &PathBuf) -> Result<()>

以name为项目名称,以path为项目根路径,创建项目模板

§Note

此函数在调用时保证path已经存在且为空

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§