pub struct Pattern {
pub command_match: Regex,
pub success: Option<SuccessPattern>,
pub failure: Option<FailurePattern>,
}Expand description
A pattern for matching and extracting information from command output.
Patterns define how to compress command output using regex matching.
When a command matches the command_match regex, the pattern’s
success or failure logic is applied to extract compressed output.
Fields§
§command_match: RegexRegex that matches the command line (e.g., r"cargo test").
success: Option<SuccessPattern>Optional pattern for extracting a summary from successful command output.
failure: Option<FailurePattern>Optional strategy for filtering failed command output.
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnsafeUnpin for Pattern
impl UnwindSafe for Pattern
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