pub trait Filter: Sync + Send {
// Required method
fn filter(
&self,
value: &Value,
args: &HashMap<String, Value>,
) -> Result<Value, Error>;
// Provided method
fn is_safe(&self) -> bool { ... }
}
Expand description
The filter function type definition