Skip to main content

SyncPlugin

Trait SyncPlugin 

Source
pub trait SyncPlugin: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn introspect<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Schema>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A sync plugin introspects an application and returns a Schema.

Built-in plugins in the main appctl crate implement this trait directly. Dynamic plugins use the C ABI in ffi and are adapted by the loader.

Required Methods§

Source

fn name(&self) -> &str

Stable identifier, e.g. "openapi", "rails", "airtable".

Source

fn introspect<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Schema>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Introspect the target and build a schema.

Implementors§