Trait liquid_core::FilterReflection[][src]

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

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn keyword_parameters(&self) -> &'static [ParameterReflection]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
; }

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

fn name(&self) -> &str[src]

fn description(&self) -> &str[src]

fn positional_parameters(&self) -> &'static [ParameterReflection]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn keyword_parameters(&self) -> &'static [ParameterReflection]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Loading content...

Implementors

Loading content...