pub mod isolation;
pub mod quotas;
pub mod tenant;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct TenantConfig {
pub tenant_id: String,
pub name: String,
pub encryption_key_id: Option<String>,
pub quotas: HashMap<String, u64>,
pub metadata: HashMap<String, String>,
}
impl TenantConfig {
pub fn new(tenant_id: String, name: String) -> Self {
Self {
tenant_id,
name,
encryption_key_id: None,
quotas: HashMap::new(),
metadata: HashMap::new(),
}
}
}