pub trait Capsule: Sync {
// Required methods
fn id(&self) -> &'static str;
fn manifest(&self) -> Manifest;
fn execute(&self, input: &Value) -> ExecutionOutput;
}Required Methods§
fn id(&self) -> &'static str
fn manifest(&self) -> Manifest
fn execute(&self, input: &Value) -> ExecutionOutput
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".