chore(monorepo): delta, january, quark
This commit is contained in:
14
crates/quark/src/traits/users/user_settings.rs
Normal file
14
crates/quark/src/traits/users/user_settings.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
use crate::models::UserSettings;
|
||||
use crate::Result;
|
||||
|
||||
#[async_trait]
|
||||
pub trait AbstractUserSettings: Sync + Send {
|
||||
/// Fetch a subset of user settings
|
||||
async fn fetch_user_settings(&'_ self, id: &str, filter: &'_ [String]) -> Result<UserSettings>;
|
||||
|
||||
/// Update a subset of user settings
|
||||
async fn set_user_settings(&self, id: &str, settings: &UserSettings) -> Result<()>;
|
||||
|
||||
/// Delete all user settings
|
||||
async fn delete_user_settings(&self, id: &str) -> Result<()>;
|
||||
}
|
||||
Reference in New Issue
Block a user