1 2 3 4 5 6 7 8 9 10 11 12
use revolt_result::Result; use crate::User; mod mongodb; mod reference; #[async_trait] pub trait AbstractUsers: Sync + Send { /// Fetch a user from the database async fn fetch_user(&self, id: &str) -> Result<User>; }