use std::sync::Arc; use async_trait::async_trait; use como_domain::Context; pub type DynUserService = Arc; #[async_trait] pub trait UserService { async fn add_user( &self, context: &Context, username: String, password: String, ) -> anyhow::Result; async fn validate_user( &self, context: &Context, username: String, password: String, ) -> anyhow::Result>; }