pub struct MatchOutputRule {
pub contains: String,
pub output: String,
}Expand description
Matches against the full output and short-circuits with a fixed message.
Fields§
§contains: StringSubstring to search for in the combined output.
output: StringOutput to emit if the substring is found.
Trait Implementations§
Source§impl Clone for MatchOutputRule
impl Clone for MatchOutputRule
Source§fn clone(&self) -> MatchOutputRule
fn clone(&self) -> MatchOutputRule
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 MatchOutputRule
impl Debug for MatchOutputRule
Source§impl<'de> Deserialize<'de> for MatchOutputRule
impl<'de> Deserialize<'de> for MatchOutputRule
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
Source§impl PartialEq for MatchOutputRule
impl PartialEq for MatchOutputRule
Source§impl Serialize for MatchOutputRule
impl Serialize for MatchOutputRule
impl Eq for MatchOutputRule
impl StructuralPartialEq for MatchOutputRule
Auto Trait Implementations§
impl Freeze for MatchOutputRule
impl RefUnwindSafe for MatchOutputRule
impl Send for MatchOutputRule
impl Sync for MatchOutputRule
impl Unpin for MatchOutputRule
impl UnsafeUnpin for MatchOutputRule
impl UnwindSafe for MatchOutputRule
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