PipeProcessor

Trait PipeProcessor 

Source
pub trait PipeProcessor {
    // Required methods
    fn process(&self, data: RawData) -> WparseResult<RawData>;
    fn name(&self) -> &'static str;
}
Expand description

Trait for pipeline data processing operations.

This trait defines the interface for components that process RawData within a data pipeline, transforming it from one format to another (e.g., base64 decoding, hex decoding, string unescaping, etc.).

Pipeline processors are executed in sequence as part of a data processing pipeline, with the output of one processor becoming the input of the next.

Required Methods§

Source

fn process(&self, data: RawData) -> WparseResult<RawData>

Process the input data and return the transformed result.

§Arguments
  • data - The input data to be processed
§Returns

The processed data in the appropriate output format

Source

fn name(&self) -> &'static str

Get the name/identifier of this pipeline processor.

§Returns

A string slice representing the processor name

Implementors§