Skip to main content

PreProcess

Trait PreProcess 

Source
pub trait PreProcess {
    // Provided methods
    fn pre_process(&mut self) { ... }
    fn set_context(&mut self, _ctx: &str) { ... }
}
Expand description

A hook to process data after parsing but before validation.

Provided Methods§

Source

fn pre_process(&mut self)

Perform data normalization or context injection.

Source

fn set_context(&mut self, _ctx: &str)

Set context information (e.g., file path or key).

Implementors§