030e59e
zhenyi
refactor(lib): migrate storage and security tier to central lib/config (auth, cache, db, email, jwt, payment, queue, rate_limit, storage)
030e59e
use thiserror::Error;
#[derive(Debug, Error)]
pub enum ConfigError {
#[error("config load failed: {0}")]
Load(#[from] config_rs::ConfigError),
#[error("invalid configuration: {0}")]
Validation(String),
}
pub type ConfigResult<T> = Result<T, ConfigError>;