pub struct SuccessPattern {
pub pattern: Regex,
pub summary: String,
}Expand description
Pattern for extracting a summary from successful command output.
The pattern field contains a regex with named capture groups.
The summary field is a template string with placeholders like {name}
that are replaced with captured values.
Fields§
§pattern: RegexRegex with named capture groups for extracting values.
summary: StringTemplate string with {name} placeholders for summary formatting.
Auto Trait Implementations§
impl Freeze for SuccessPattern
impl RefUnwindSafe for SuccessPattern
impl Send for SuccessPattern
impl Sync for SuccessPattern
impl Unpin for SuccessPattern
impl UnsafeUnpin for SuccessPattern
impl UnwindSafe for SuccessPattern
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