pub struct OutputMatchConfig {
pub pattern: String,
pub match_type: OutputMatchType,
pub stream: OutputMatchStream,
pub command: Option<String>,
pub file: Option<String>,
}Expand description
Configuration for output-match notifications.
Fields§
§pattern: StringPattern to match against output lines.
match_type: OutputMatchTypeMatch type: contains (substring) or regex.
stream: OutputMatchStreamWhich stream to match: stdout, stderr, or either.
command: Option<String>Shell command string for command sink; executed via platform shell on match.
file: Option<String>File path for NDJSON append sink.
Trait Implementations§
Source§impl Clone for OutputMatchConfig
impl Clone for OutputMatchConfig
Source§fn clone(&self) -> OutputMatchConfig
fn clone(&self) -> OutputMatchConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 OutputMatchConfig
impl Debug for OutputMatchConfig
Source§impl<'de> Deserialize<'de> for OutputMatchConfig
impl<'de> Deserialize<'de> for OutputMatchConfig
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
Auto Trait Implementations§
impl Freeze for OutputMatchConfig
impl RefUnwindSafe for OutputMatchConfig
impl Send for OutputMatchConfig
impl Sync for OutputMatchConfig
impl Unpin for OutputMatchConfig
impl UnsafeUnpin for OutputMatchConfig
impl UnwindSafe for OutputMatchConfig
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