Skip to main content

FilterPlugin

Trait FilterPlugin 

Source
pub trait FilterPlugin: AstPlugin {
    // Required methods
    fn filter_content(
        &self,
        content: &[u8],
        filter_params: &HashMap<String, String>,
    ) -> Result<Vec<u8>, String>;
    fn get_supported_filters(&self) -> Vec<String>;
}
Expand description

Filter plugin for content processing

Required Methods§

Source

fn filter_content( &self, content: &[u8], filter_params: &HashMap<String, String>, ) -> Result<Vec<u8>, String>

Source

fn get_supported_filters(&self) -> Vec<String>

Implementors§