mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-18 07:39:21 +00:00
11 lines
293 B
Rust
11 lines
293 B
Rust
use async_trait::async_trait;
|
|
use axum::response::IntoResponse;
|
|
|
|
#[async_trait]
|
|
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>;
|
|
}
|