rustical_oidc/
user_store.rs1use actix_web::ResponseError;
2use async_trait::async_trait;
3
4#[async_trait(?Send)]
5pub trait UserStore: 'static {
6 type Error: ResponseError;
7
8 async fn user_exists(&self, id: &str) -> Result<bool, Self::Error>;
9 async fn insert_user(&self, id: &str) -> Result<(), Self::Error>;
10}