Checkpoint: Migration to axum

This commit is contained in:
Lennart
2025-06-08 14:10:12 +02:00
parent 790c657b08
commit 95889e3df1
60 changed files with 1476 additions and 2205 deletions

View File

@@ -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>;