Skip to main content

ExtractionProvider

Trait ExtractionProvider 

Source
pub trait ExtractionProvider: Send + Sync {
    // Required methods
    fn extract<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        text: &'life1 str,
        opts: &'life2 ExtractionOpts,
    ) -> Pin<Box<dyn Future<Output = Result<ExtractionResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn provider_name(&self) -> &'static str;
}

Required Methods§

Source

fn extract<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, text: &'life1 str, opts: &'life2 ExtractionOpts, ) -> Pin<Box<dyn Future<Output = Result<ExtractionResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

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

Implementors§