pub struct NewProjectOptions {
pub target: PathBuf,
pub dependencies: DependencySource,
pub initialize_git: bool,
pub install_dependencies: bool,
pub render_mode: ProjectRenderMode,
pub database: Option<ProjectDatabase>,
pub frontend: ProjectFrontend,
pub tailwind: bool,
}Fields§
§target: PathBuf§dependencies: DependencySource§initialize_git: bool§install_dependencies: bool§render_mode: ProjectRenderMode§database: Option<ProjectDatabase>§frontend: ProjectFrontend§tailwind: boolImplementations§
Source§impl NewProjectOptions
impl NewProjectOptions
pub fn new(target: impl Into<PathBuf>) -> Self
pub fn dependencies(self, dependencies: DependencySource) -> Self
pub const fn initialize_git(self, initialize: bool) -> Self
pub const fn install_dependencies(self, install: bool) -> Self
pub const fn render_mode(self, render_mode: ProjectRenderMode) -> Self
pub const fn database(self, database: Option<ProjectDatabase>) -> Self
pub const fn frontend(self, frontend: ProjectFrontend) -> Self
pub const fn tailwind(self, tailwind: bool) -> Self
Trait Implementations§
Source§impl Clone for NewProjectOptions
impl Clone for NewProjectOptions
Source§fn clone(&self) -> NewProjectOptions
fn clone(&self) -> NewProjectOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NewProjectOptions
impl RefUnwindSafe for NewProjectOptions
impl Send for NewProjectOptions
impl Sync for NewProjectOptions
impl Unpin for NewProjectOptions
impl UnsafeUnpin for NewProjectOptions
impl UnwindSafe for NewProjectOptions
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