Plugin

Trait Plugin 

Source
pub trait Plugin {
    // Required methods
    fn test(&self, val: &JsValue) -> bool;
    fn serialize(
        &self,
        val: &JsValue,
        config: &Config,
        indentation: String,
        depth: usize,
        refs: Refs,
        printer: &Printer,
    ) -> String;
}

Required Methods§

Source

fn test(&self, val: &JsValue) -> bool

Source

fn serialize( &self, val: &JsValue, config: &Config, indentation: String, depth: usize, refs: Refs, printer: &Printer, ) -> String

Implementors§