slf::gitai

Trait Provider

Source
pub trait Provider: Send + Sync {
    // Required method
    fn generate_commit_message<'life0, 'life1, 'async_trait>(
        &'life0 self,
        diff: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided method
    fn prompt(&self, diff: &str) -> String { ... }
}

Required Methods§

Source

fn generate_commit_message<'life0, 'life1, 'async_trait>( &'life0 self, diff: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

Source

fn prompt(&self, diff: &str) -> String

Implementors§