pub trait FunctionImplementation:
Send
+ Sync
+ 'static {
// Required methods
fn name(&self) -> &'static str;
fn return_type(&self) -> ReturnType;
fn execute(
&self,
args: &HashMap<String, Value>,
context: &DataContext<'_>,
) -> Result<Value, A2uiError>;
}Expand description
A function implementation that can be executed by the A2UI runtime.
Required Methods§
Sourcefn return_type(&self) -> ReturnType
fn return_type(&self) -> ReturnType
The return type of this function.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".