pub enum ExtraRuleTrigger {
PathSuffix {
suffix: String,
},
PathContains {
fragment: String,
},
PathRegex {
pattern: String,
captures: Vec<String>,
},
}Expand description
Path-glob trigger expression. PathRegex supports named captures
((?P<name>...)) that templates referenced in
ExtraRule::include_suite_templates may substitute.
Variants§
PathSuffix
Fires when any modified path’s file name matches suffix.
PathContains
Fires when any modified path contains fragment.
PathRegex
Fires when any modified path matches pattern. The captures
list enumerates the named capture groups templates may reference.
Validated against the pattern at config-load time so unknown
{placeholder}s fail fast instead of silently dropping at runtime.
Trait Implementations§
Source§impl Clone for ExtraRuleTrigger
impl Clone for ExtraRuleTrigger
Source§fn clone(&self) -> ExtraRuleTrigger
fn clone(&self) -> ExtraRuleTrigger
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExtraRuleTrigger
impl Debug for ExtraRuleTrigger
Source§impl<'de> Deserialize<'de> for ExtraRuleTrigger
impl<'de> Deserialize<'de> for ExtraRuleTrigger
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 ExtraRuleTrigger
Source§impl PartialEq for ExtraRuleTrigger
impl PartialEq for ExtraRuleTrigger
Source§impl Serialize for ExtraRuleTrigger
impl Serialize for ExtraRuleTrigger
impl StructuralPartialEq for ExtraRuleTrigger
Auto Trait Implementations§
impl Freeze for ExtraRuleTrigger
impl RefUnwindSafe for ExtraRuleTrigger
impl Send for ExtraRuleTrigger
impl Sync for ExtraRuleTrigger
impl Unpin for ExtraRuleTrigger
impl UnsafeUnpin for ExtraRuleTrigger
impl UnwindSafe for ExtraRuleTrigger
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