1 2 3 4 5 6 7 8 9
use anyhow::Result; use async_trait::async_trait; use crate::core::Comment; #[async_trait] pub trait PostProcessor: Send + Sync { fn id(&self) -> &str; async fn run(&self, comments: Vec<Comment>, repo_path: &str) -> Result<Vec<Comment>>; }