pub struct DevConfig {
pub environment: DevEnvironment,
pub watch: bool,
pub no_build: bool,
pub nodes: Vec<String>,
pub auto_start_services: bool,
pub flush_redis: bool,
pub env_vars: HashMap<String, String>,
}Expand description
Development mode configuration
Fields§
§environment: DevEnvironmentEnvironment name
watch: boolEnable hot reload/watch mode
no_build: boolSkip initial build
nodes: Vec<String>Specific nodes to run (empty = all enabled nodes)
auto_start_services: boolAuto-start services
flush_redis: boolFlush Redis on start
env_vars: HashMap<String, String>Additional environment variables
Implementations§
Source§impl DevConfig
impl DevConfig
Sourcepub fn new(environment: DevEnvironment) -> Self
pub fn new(environment: DevEnvironment) -> Self
Create a new dev config with defaults
Sourcepub fn with_watch(self, enabled: bool) -> Self
pub fn with_watch(self, enabled: bool) -> Self
Set watch mode
Sourcepub fn with_no_build(self, enabled: bool) -> Self
pub fn with_no_build(self, enabled: bool) -> Self
Set no-build flag
Sourcepub fn with_nodes(self, nodes: Vec<String>) -> Self
pub fn with_nodes(self, nodes: Vec<String>) -> Self
Set specific nodes to run
Sourcepub fn with_auto_start_services(self, enabled: bool) -> Self
pub fn with_auto_start_services(self, enabled: bool) -> Self
Set auto-start services
Sourcepub fn with_flush_redis(self, enabled: bool) -> Self
pub fn with_flush_redis(self, enabled: bool) -> Self
Set flush Redis
Sourcepub fn with_env_var(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn with_env_var( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Add environment variable
Sourcepub fn with_env_vars(self, vars: HashMap<String, String>) -> Self
pub fn with_env_vars(self, vars: HashMap<String, String>) -> Self
Add multiple environment variables
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 UnwindSafe for DevConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more