1 2 3 4 5 6
use async_trait::async_trait; #[async_trait] pub trait MongoContext { async fn get_database(&self) -> mongodb::Database; }