Module handler

Source
Expand description

Collections of handler (what to do with matched paths and data).

Re-exports§

pub use self::analyser::Analyser;
pub use self::buffer::Buffer;
pub use self::group::Group;
pub use self::indenter::Indenter;
pub use self::indexer::Indexer;
pub use self::output::Output;
pub use self::regex::Regex;
pub use self::replace::Replace;
pub use self::shorten::Shorten;
pub use self::unstringify::Unstringify;

Modules§

analyser
Handler which stores matched paths
buffer
Handler which buffers output which can be manually extracted
group
Handler which groups multiple handlers together
indenter
Handler which alters indentation of matched data
indexer
Handler which stores indexes where matched data are kept. The data should be within <start_idx, end_idx) range
output
Handler which puts output into writeable struct
regex
Handler which pefroms regex conversion on mathed data
replace
Handler which replaces output by fixed data it can be used e.g. to clear the sensitive data "secred_password" -> `“***”
shorten
Handler which shortens matched data it can be used e.g. shorten long strings "some long text" -> "some lon..."
unstringify
Handler which unstringifies matched data it can be used e.g. shorten long strings "{\"aa\": {\"bb\":2}, \"cc\": \"dd\"}" -> {"aa": {"bb": 2}, "cc": "dd"}

Traits§

Handler
Common handler trait