pub struct InitOptions {
pub name: String,
pub package_manager: Option<String>,
pub flags: Vec<String>,
pub is_empty_dir: bool,
}Expand description
Options for project initialization
Fields§
§name: StringProject name
package_manager: Option<String>Whether to use a specific package manager (e.g., “poetry”, “pdm”, “npm”, “pnpm”)
flags: Vec<String>Additional flags
is_empty_dir: boolWhether the target directory is empty
Trait Implementations§
Source§impl Clone for InitOptions
impl Clone for InitOptions
Source§fn clone(&self) -> InitOptions
fn clone(&self) -> InitOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InitOptions
impl Debug for InitOptions
Source§impl Default for InitOptions
impl Default for InitOptions
Source§fn default() -> InitOptions
fn default() -> InitOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InitOptions
impl RefUnwindSafe for InitOptions
impl Send for InitOptions
impl Sync for InitOptions
impl Unpin for InitOptions
impl UnwindSafe for InitOptions
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