pub struct OutputPattern {
pub location: ScriptLocation,
pub pattern: OutputPatternType,
pub ignore: OutputPatterns,
pub reject: OutputPatterns,
}Fields§
§location: ScriptLocation§pattern: OutputPatternType§ignore: OutputPatterns§reject: OutputPatternsImplementations§
Source§impl OutputPattern
impl OutputPattern
pub fn new_sequence( location: ScriptLocation, patterns: Vec<OutputPattern>, ) -> Self
pub fn prepare(&self, grok: &Grok) -> Result<(), OutputPatternPrepareError>
pub fn matches( &self, context: OutputMatchContext<'_>, output: Lines, ) -> Result<Lines, OutputPatternMatchFailure>
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).
Trait Implementations§
Source§impl Clone for OutputPattern
impl Clone for OutputPattern
Source§fn clone(&self) -> OutputPattern
fn clone(&self) -> OutputPattern
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 OutputPattern
impl Debug for OutputPattern
Auto Trait Implementations§
impl Freeze for OutputPattern
impl RefUnwindSafe for OutputPattern
impl Send for OutputPattern
impl Sync for OutputPattern
impl Unpin for OutputPattern
impl UnsafeUnpin for OutputPattern
impl UnwindSafe for OutputPattern
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