server: Add SchemaBackendHandler trait

This commit is contained in:
Valentin Tolmer
2023-06-17 13:15:04 +02:00
committed by nitnelave
parent 4ce145bac2
commit 829ebf59f7
6 changed files with 146 additions and 4 deletions

View File

@@ -709,6 +709,10 @@ mod tests {
async fn remove_user_from_group(&self, user_id: &UserId, group_id: GroupId) -> Result<()>;
}
#[async_trait]
impl SchemaBackendHandler for TestBackendHandler {
async fn get_schema(&self) -> Result<Schema>;
}
#[async_trait]
impl BackendHandler for TestBackendHandler {}
#[async_trait]
impl OpaqueHandler for TestBackendHandler {