pub enum SuccessStrategy {
Regex {
pattern: Regex,
summary: String,
},
Tail {
lines: usize,
},
Head {
lines: usize,
},
Grep {
pattern: Regex,
},
}Expand description
Strategy for extracting success output.
Mirrors failure strategies but for successful command output. Used when a command succeeds with large output and a pattern matches.
Variants§
Regex
Legacy format: regex with named capture groups + summary template.
Fields
Tail
Keep the last N lines of output (tail).
Head
Keep the first N lines of output (head).
Grep
Filter lines matching a regex pattern.
Auto Trait Implementations§
impl Freeze for SuccessStrategy
impl RefUnwindSafe for SuccessStrategy
impl Send for SuccessStrategy
impl Sync for SuccessStrategy
impl Unpin for SuccessStrategy
impl UnsafeUnpin for SuccessStrategy
impl UnwindSafe for SuccessStrategy
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