pub trait AIProvider: Send + Sync {
// Required method
fn generate_commit_message<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
diff: &'life1 str,
context: Option<&'life2 str>,
full_gitmoji: bool,
config: &'life3 Config,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
// Provided methods
fn generate_commit_messages<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
diff: &'life1 str,
context: Option<&'life2 str>,
full_gitmoji: bool,
config: &'life3 Config,
count: u8,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
fn generate_pr_description<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
commits: &'life1 [String],
diff: &'life2 str,
config: &'life3 Config,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait { ... }
}Required Methods§
fn generate_commit_message<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
diff: &'life1 str,
context: Option<&'life2 str>,
full_gitmoji: bool,
config: &'life3 Config,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Provided Methods§
Sourcefn generate_commit_messages<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
diff: &'life1 str,
context: Option<&'life2 str>,
full_gitmoji: bool,
config: &'life3 Config,
count: u8,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn generate_commit_messages<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
diff: &'life1 str,
context: Option<&'life2 str>,
full_gitmoji: bool,
config: &'life3 Config,
count: u8,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Generate multiple commit message variations
Sourcefn generate_pr_description<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
commits: &'life1 [String],
diff: &'life2 str,
config: &'life3 Config,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn generate_pr_description<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
commits: &'life1 [String],
diff: &'life2 str,
config: &'life3 Config,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Generate a PR description from commits