pub struct Grok { /* private fields */ }
Implementations§
source§impl Grok
impl Grok
sourcepub fn add_pattern<T: Into<String>>(&mut self, name: T, pattern: T)
pub fn add_pattern<T: Into<String>>(&mut self, name: T, pattern: T)
Examples found in repository?
More examples
sourcepub fn compile(
&self,
s: &str,
named_capture_only: bool,
) -> Result<Pattern, String>
pub fn compile( &self, s: &str, named_capture_only: bool, ) -> Result<Pattern, String>
if named_capture_only is true, then pattern without alias won’t be captured. e.g. if pattern is “%{USERNAME} %{EMAILADDRESS:email}” and named_capture_only is true, then only email will be captured.
Examples found in repository?
More examples
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Grok
impl RefUnwindSafe for Grok
impl Send for Grok
impl Sync for Grok
impl Unpin for Grok
impl UnwindSafe for Grok
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