saleor-apps-rs/sdk/src/settings_manager/mod.rs

13 lines
377 B
Rust
Raw Normal View History

2024-11-15 00:38:40 +00:00
pub mod encrypted_metadata;
pub mod metadata;
pub mod queries;
use async_trait::async_trait;
#[async_trait]
pub trait SettingsManager<K, V, E>: Send + Sync {
async fn get(&mut self, key: K, domain: &str) -> Result<V, E>;
async fn set(&mut self, key: K, value: V, domain: &str) -> Result<(), E>;
async fn delete(&mut self, key: K, domain: &str) -> Result<V, E>;
}