1 2 3 4 5 6 7 8 9
use async_trait::async_trait; use crate::common::Result; use crate::core::UnitOfWork; #[async_trait] pub(crate) trait Middleware { async fn apply(&mut self, uow: UnitOfWork) -> Result<()>; }