pub trait UdfPlugin: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn description(&self) -> &str;
fn min_arity(&self) -> usize;
fn max_arity(&self) -> usize;
fn is_pure(&self) -> bool;
fn execute(&self, args: &[Value]) -> Result<Value, ExpressionError>;
}Expand description
Plugin interface implemented by user defined functions.
The trait mirrors the metadata required by CustomFunction so a plugin
can be registered without additional glue code. Only argument values and
the return value cross the library boundary; plugins never observe
database internals.
Required Methods§
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Human readable description.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".