Skip to main content

plugin

Function plugin 

Source
pub fn plugin(options: DirectiveOptions) -> Plugin
Expand description

Build the directive plugin for options.

The returned Plugin can be installed with Tabnas::use_plugin, and — like every native plugin — re-runs against a derived instance’s options. Most callers want apply.

Typed option data lives in the returned closure rather than in the engine’s serialized plugin-option bag, because a directive’s action, conditions and custom hook are Rust callbacks and no Value can carry them.