pub struct WatchRule {
pub action: Action,
pub ignore: Vec<PathBuf>,
pub path: PathBuf,
pub target: Option<AbsolutePath>,
pub extensions: Extensions,
}Expand description
Rule which controls automatic service updates based on local file changes.
Fields§
§action: ActionAction to take when changes are detected.
ignore: Vec<PathBuf>Patterns for paths to be ignored. Any updated file that matches a pattern, or belongs to a folder that matches a pattern, won’t trigger services to be re-created.
path: PathBufPath to source code (relative to the project directory) to monitor for changes.
target: Option<AbsolutePath>Files within path with changes are synchronized to the container filesystem at this
location, so that the latter is always running with up-to-date content.
extensions: ExtensionsExtension values, which are (de)serialized via flattening.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WatchRule
impl<'de> Deserialize<'de> for WatchRule
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
impl Eq for WatchRule
impl StructuralPartialEq for WatchRule
Auto Trait Implementations§
impl Freeze for WatchRule
impl RefUnwindSafe for WatchRule
impl Send for WatchRule
impl Sync for WatchRule
impl Unpin for WatchRule
impl UnwindSafe for WatchRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.