Skip to main content

Capsule

Trait Capsule 

Source
pub trait Capsule: Sync {
    // Required methods
    fn id(&self) -> &'static str;
    fn manifest(&self) -> Manifest;
    fn execute(&self, input: &Value) -> ExecutionOutput;
}

Required Methods§

Source

fn id(&self) -> &'static str

Source

fn manifest(&self) -> Manifest

Source

fn execute(&self, input: &Value) -> ExecutionOutput

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§