Trait TextTranslator

Source
pub trait TextTranslator {
    // Required method
    fn translate<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        source_text: &'life1 str,
        source_lang: &'life2 str,
        dest_lang: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}

Required Methods§

Source

fn translate<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 mut self, source_text: &'life1 str, source_lang: &'life2 str, dest_lang: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§