[][src]Trait liquid_compiler::FilterReflection

pub trait FilterReflection {
    fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
fn positional_parameters(&self) -> &'static [ParameterReflection];
fn keyword_parameters(&self) -> &'static [ParameterReflection]; }

A trait that holds the information of a filter about itself, such as its name, description and parameters.

All structs that implement ParseFilter must implement this.

Deriving

This trait may be derived with liquid-derive's #[derive(FilterReflection)]. However, it is necessary to use the #[filter(...)] helper attribute. See documentation on liquid-derive for more information.

Required methods

Loading content...

Implementors

Loading content...