strip all comments, extract tests to tests/ dirs, remove #[allow(clippy::...)], extract magic numbers to constants, refactor schedule engine private methods to use param structs, add Default impls, clippy.toml for persistence constructors
13 lines
336 B
Rust
13 lines
336 B
Rust
use async_trait::async_trait;
|
|
|
|
use crate::errors::DomainResult;
|
|
|
|
#[async_trait]
|
|
pub trait AppSettingsRepository: Send + Sync {
|
|
async fn get(&self, key: &str) -> DomainResult<Option<String>>;
|
|
|
|
async fn set(&self, key: &str, value: &str) -> DomainResult<()>;
|
|
|
|
async fn get_all(&self) -> DomainResult<Vec<(String, String)>>;
|
|
}
|