pub enum MatchEncoder {
Status,
Byte,
Color,
JSON,
JSONPretty,
Line,
Matches,
Subs,
Custom(CString),
}Variants§
Status
The simplest and fastest encoder. Outputs true if the pattern matched and false otherwise.
Byte
A compact encoding of the match information into an array of bytes.
Color
A human-readable format using ANSI text coloring for different elements. The colors associated with each element can be customized by Q-04.02 QUESTION FOR A ROSIE EXPERT: Where is this documented?
JSON
A json-encoded match structure.
JSONPretty
The same data as JSON, except formatted for better readability.
Line
Each matching line from the input will be a line in the output.
Matches
The matching subset of each input line will be a line in the output.
Subs
The subset of the input matched by each sub-expression of the pattern will be a line in the output.
Custom(CString)
The output of a custom encoder module, implemented in Lua. Documentation on implementing encoder modules can
be found Q-04.03 QUESTION FOR A ROSIE EXPERT: Where is this documented?
Implementations§
Trait Implementations§
Source§impl Clone for MatchEncoder
impl Clone for MatchEncoder
Source§fn clone(&self) -> MatchEncoder
fn clone(&self) -> MatchEncoder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more