pub enum OutputPatternType {
End,
None,
Any(Box<OutputPattern>),
Literal(String),
Pattern(Arc<GrokPattern>),
Repeat(Box<OutputPattern>),
Optional(Box<OutputPattern>),
Unordered(Vec<OutputPattern>),
Choice(Vec<OutputPattern>),
Sequence(Vec<OutputPattern>),
Not(Box<OutputPattern>),
If(IfCondition, Box<OutputPattern>),
}Variants§
End
The end of the output
None
Matches no lines of output, always succeeds
Any(Box<OutputPattern>)
Any lines, followed by a pattern.
Literal(String)
A literal string
Pattern(Arc<GrokPattern>)
A grok pattern
Repeat(Box<OutputPattern>)
A pattern that matches one or more of the given pattern
Optional(Box<OutputPattern>)
A pattern that matches zero or one of the given pattern
Unordered(Vec<OutputPattern>)
A pattern that all of its subpatterns, but in any order
Choice(Vec<OutputPattern>)
A pattern that matches one of the given patterns
Sequence(Vec<OutputPattern>)
A pattern that matches a sequence of patterns
Not(Box<OutputPattern>)
A negative look-ahead pattern
If(IfCondition, Box<OutputPattern>)
A pattern that matches a condition
Implementations§
Source§impl OutputPatternType
impl OutputPatternType
Sourcepub fn min_matches(&self) -> usize
pub fn min_matches(&self) -> usize
The minimum number of lines this pattern will match.
Sourcepub fn max_matches(&self) -> usize
pub fn max_matches(&self) -> usize
The maximum number of lines this pattern will match (or usize::MAX if unbounded).
pub fn keyword(&self) -> &'static str
pub fn is_container(&self) -> bool
pub fn trace_string(&self) -> String
Source§impl OutputPatternType
impl OutputPatternType
pub fn matches( &self, location: &ScriptLocation, context: OutputMatchContext<'_>, output: Lines, ) -> Result<Lines, OutputPatternMatchFailure>
Trait Implementations§
Source§impl Clone for OutputPatternType
impl Clone for OutputPatternType
Source§fn clone(&self) -> OutputPatternType
fn clone(&self) -> OutputPatternType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OutputPatternType
impl Debug for OutputPatternType
Source§impl Default for OutputPatternType
impl Default for OutputPatternType
Auto Trait Implementations§
impl Freeze for OutputPatternType
impl RefUnwindSafe for OutputPatternType
impl Send for OutputPatternType
impl Sync for OutputPatternType
impl Unpin for OutputPatternType
impl UnsafeUnpin for OutputPatternType
impl UnwindSafe for OutputPatternType
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