pub struct ReactorRuleDef {
pub id: String,
pub name: String,
pub watch_paths: Vec<String>,
pub patterns: Vec<String>,
pub exclude_patterns: Vec<String>,
pub event_types: Vec<String>,
pub debounce_ms: u64,
pub enabled: bool,
}Expand description
Definition of a reactor rule in configuration.
Fields§
§id: StringUnique rule identifier.
name: StringHuman-readable name.
watch_paths: Vec<String>Paths to watch.
patterns: Vec<String>Glob patterns for file matching.
exclude_patterns: Vec<String>Patterns to exclude.
event_types: Vec<String>File system event types to react to.
debounce_ms: u64Per-rule debounce in milliseconds.
enabled: boolWhether this rule is enabled.
Trait Implementations§
Source§impl Clone for ReactorRuleDef
impl Clone for ReactorRuleDef
Source§fn clone(&self) -> ReactorRuleDef
fn clone(&self) -> ReactorRuleDef
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 ReactorRuleDef
impl Debug for ReactorRuleDef
Source§impl<'de> Deserialize<'de> for ReactorRuleDef
impl<'de> Deserialize<'de> for ReactorRuleDef
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 ReactorRuleDef
impl RefUnwindSafe for ReactorRuleDef
impl Send for ReactorRuleDef
impl Sync for ReactorRuleDef
impl Unpin for ReactorRuleDef
impl UnsafeUnpin for ReactorRuleDef
impl UnwindSafe for ReactorRuleDef
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