pub struct WatchSettings {
pub path: Option<String>,
pub include_patterns: Vec<String>,
pub ignore_patterns: Vec<String>,
pub no_gitignore: Option<bool>,
pub pre_restart_cmds: Vec<Vec<String>>,
pub pre_restart_cwd: Option<String>,
pub pre_restart_timeout_seconds: Option<f64>,
}Fields§
§path: Option<String>§include_patterns: Vec<String>§ignore_patterns: Vec<String>§no_gitignore: Option<bool>§pre_restart_cmds: Vec<Vec<String>>Optional commands to run before starting/restarting a worker in watch mode.
Each entry is an argv array: ["cmd", "arg1", ...].
pre_restart_cwd: Option<String>Optional working directory for pre_restart_cmds.
Defaults to the resolved watch root.
pre_restart_timeout_seconds: Option<f64>Optional timeout (seconds) applied to each pre_restart_cmds entry.
Trait Implementations§
Source§impl Clone for WatchSettings
impl Clone for WatchSettings
Source§fn clone(&self) -> WatchSettings
fn clone(&self) -> WatchSettings
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 WatchSettings
impl Debug for WatchSettings
Source§impl Default for WatchSettings
impl Default for WatchSettings
Source§fn default() -> WatchSettings
fn default() -> WatchSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WatchSettingswhere
WatchSettings: Default,
impl<'de> Deserialize<'de> for WatchSettingswhere
WatchSettings: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WatchSettings
impl RefUnwindSafe for WatchSettings
impl Send for WatchSettings
impl Sync for WatchSettings
impl Unpin for WatchSettings
impl UnsafeUnpin for WatchSettings
impl UnwindSafe for WatchSettings
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