Trait liquid_core::FilterParameters [−][src]
A trait that declares and holds the parameters of a filter.
Provides from_args
, to construct itself from FilterArguments
(parses the arguments)
and evaluate
, to construct its evaluated counterpart (evaluates the arguments).
Deriving
The whole point of this structure is to facilitate the process of deriving a filter.
Thus, this trait and all traits it requires may be derived with #[derive(Debug, FilterParameters)]
.
See documentation for FilterParameters
macro on liquid-derive
for more information.
Associated Types
Loading content...Required methods
fn from_args(args: FilterArguments<'_>) -> Result<Self>
[src]
fn evaluate(
&'a self,
runtime: &'a Runtime<'_>
) -> Result<Self::EvaluatedFilterParameters>
[src]
&'a self,
runtime: &'a Runtime<'_>
) -> Result<Self::EvaluatedFilterParameters>