mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-06-27 16:35:59 +00:00
10 lines
273 B
Rust
10 lines
273 B
Rust
|
use ruma::{OwnedUserId, UserId};
|
||
|
|
||
|
use crate::Result;
|
||
|
|
||
|
pub trait Data: Send + Sync {
|
||
|
fn save_subject(&self, provider: &str, user_id: &UserId, subject: &str) -> Result<()>;
|
||
|
|
||
|
fn user_from_subject(&self, provider: &str, subject: &str) -> Result<Option<OwnedUserId>>;
|
||
|
}
|