mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-19 05:09:26 +00:00
Checkpoint: Migration to axum
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
use actix_web::ResponseError;
|
||||
use async_trait::async_trait;
|
||||
use axum::response::IntoResponse;
|
||||
|
||||
#[async_trait]
|
||||
pub trait UserStore: 'static {
|
||||
type Error: ResponseError;
|
||||
pub trait UserStore: 'static + Send {
|
||||
type Error: IntoResponse;
|
||||
|
||||
async fn user_exists(&self, id: &str) -> Result<bool, Self::Error>;
|
||||
async fn insert_user(&self, id: &str) -> Result<(), Self::Error>;
|
||||
|
||||
Reference in New Issue
Block a user