pub struct Rule {
pub pattern: String,
pub handler: String,
pub priority: i32,
pub options: HashMap<String, String>,
}Expand description
A rule mapping a file pattern to a handler.
Fields§
§pattern: StringPattern to match against (e.g. "install.sh", "*.sh", "bin/").
Prefixed with ! for exclusion rules (e.g. "!*.tmp").
handler: StringHandler to use for matching files (e.g. "symlink", "install").
priority: i32Higher priority rules are checked first. Default is 0.
options: HashMap<String, String>Handler-specific options passed through from config.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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