pub struct DevConfig {
pub working_directory: PathBuf,
pub rust: CommandSpec,
pub vite: CommandSpec,
pub watch_rust: bool,
}Fields§
§working_directory: PathBuf§rust: CommandSpec§vite: CommandSpec§watch_rust: boolWhen true (default), watch Rust sources and restart cargo run on change.
Implementations§
Source§impl DevConfig
impl DevConfig
pub fn working_directory(self, directory: impl Into<PathBuf>) -> Self
pub fn rust(self, command: CommandSpec) -> Self
pub fn vite(self, command: CommandSpec) -> Self
pub const fn watch_rust(self, enabled: bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DevConfig
impl RefUnwindSafe for DevConfig
impl Send for DevConfig
impl Sync for DevConfig
impl Unpin for DevConfig
impl UnsafeUnpin for DevConfig
impl UnwindSafe for DevConfig
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