pub struct Project {Show 14 fields
pub project_root: String,
pub project_name: String,
pub npm: NpmType,
pub description: Option<String>,
pub typescript: Option<bool>,
pub template: String,
pub css: CSSType,
pub auto_install: Option<bool>,
pub framework: FrameworkType,
pub template_root: String,
pub version: String,
pub date: Option<String>,
pub compiler: Option<CompilerType>,
pub period: PeriodType,
}Fields§
§project_root: String§project_name: String§npm: NpmType§description: Option<String>§typescript: Option<bool>§template: String§css: CSSType§auto_install: Option<bool>§framework: FrameworkType§template_root: String§version: String§date: Option<String>§compiler: Option<CompilerType>§period: PeriodTypeImplementations§
source§impl Project
impl Project
pub fn new( project_root: String, project_name: String, npm: NpmType, description: Option<String>, typescript: Option<bool>, template: String, css: CSSType, framework: FrameworkType, auto_install: Option<bool>, template_root: String, version: String, date: Option<String>, compiler: Option<CompilerType>, period: PeriodType ) -> Self
pub async fn create( &self, js_handlers: HashMap<String, ThreadsafeFunction<CreateOptions>> ) -> Result<()>
Trait Implementations§
source§impl FromNapiValue for Project
impl FromNapiValue for Project
source§impl ToNapiValue for Project
impl ToNapiValue for Project
Auto Trait Implementations§
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more