pub struct ScaffoldOptions {
pub name: String,
pub package_name: Option<String>,
pub repository: Option<String>,
pub formatter: Option<String>,
pub test_runner: Option<String>,
pub bundler: Option<String>,
pub react: bool,
pub existing_repo: bool,
pub source_dir: String,
}Expand description
Options controlling which scaffold files to generate.
Fields§
§name: StringSpec title, used as fallback for package name.
package_name: Option<String>Custom package name override (if None, derives from spec title).
repository: Option<String>Repository URL for package.json.
formatter: Option<String>Formatter tool name (e.g. “biome”) or None if disabled.
test_runner: Option<String>Test runner tool name (e.g. “vitest”) or None if disabled.
bundler: Option<String>Bundler tool name (e.g. “tsdown”) or None if disabled.
react: boolWhether React target is included.
existing_repo: boolWhether generating into an existing repo (skip all scaffold files).
source_dir: StringSubdirectory for source files (e.g. “src”, “lib”, or “” for root).
Trait Implementations§
Source§impl Clone for ScaffoldOptions
impl Clone for ScaffoldOptions
Source§fn clone(&self) -> ScaffoldOptions
fn clone(&self) -> ScaffoldOptions
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 moreAuto Trait Implementations§
impl Freeze for ScaffoldOptions
impl RefUnwindSafe for ScaffoldOptions
impl Send for ScaffoldOptions
impl Sync for ScaffoldOptions
impl Unpin for ScaffoldOptions
impl UnsafeUnpin for ScaffoldOptions
impl UnwindSafe for ScaffoldOptions
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