[][src]Trait katalyst::expression::ExpressionBinding

pub trait ExpressionBinding: Send + Sync {
    fn identifier(&self) -> &'static str;
fn make_fn(
        &self,
        name: &str,
        args: &[ExpressionArg]
    ) -> Result<ExpressionRenderMethod>; }

This is the trait used by Katalyst for building the placeholders used in a downstream URL template

Required methods

fn identifier(&self) -> &'static str

The identifier in this template to locate that this provider should be used

fn make_fn(
    &self,
    name: &str,
    args: &[ExpressionArg]
) -> Result<ExpressionRenderMethod>

This returns the render function for this expression

Loading content...

Implementors

Loading content...