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
11 lines
273 B
Rust
11 lines
273 B
Rust
use async_trait::async_trait;
|
|
|
|
use crate::errors::DomainResult;
|
|
|
|
#[async_trait]
|
|
pub trait TranscodeSettingsRepository: Send + Sync {
|
|
async fn load_cleanup_ttl(&self) -> DomainResult<Option<u32>>;
|
|
|
|
async fn save_cleanup_ttl(&self, hours: u32) -> DomainResult<()>;
|
|
}
|