Derive Macro liquid_derive::FromFilterParameters [−][src]
#[derive(FromFilterParameters)]
{
// Attributes available to this derive:
#[parameters]
}
Implements From<T> (T implements FilterParameters) for a structure that
intends to implement the Filter trait.
The field that holds the parameters must be marked with #[parameters].
Example
ⓘ
#[derive(Debug, FromFilterParameters, Display_filter)] #[name = "at_least"] struct AtLeastFilter { #[parameters] // Mark the FilterParameters struct args: AtLeastArgs, // A struct that implements `FilterParameters` } impl Filter for AtLeastFilter { // ... }