pub struct TenantConfig {
pub tenant_id: TenantId,
pub security_thresholds: HashMap<String, f64>,
pub feature_flags: HashMap<String, bool>,
pub monitoring_scope: MonitoringScope,
pub rate_limit_rpm: Option<u32>,
pub monthly_budget: Option<f64>,
}Expand description
Per-tenant configuration for security thresholds and feature flags.
Fields§
§tenant_id: TenantIdTenant this configuration belongs to.
security_thresholds: HashMap<String, f64>Security severity thresholds (e.g., “alert_min_score” → 80.0).
feature_flags: HashMap<String, bool>Feature flags (e.g., “enable_pii_detection” → true).
monitoring_scope: MonitoringScopeMonitoring scope for this tenant.
rate_limit_rpm: Option<u32>Rate limit in requests per minute (optional).
monthly_budget: Option<f64>Monthly budget in USD (optional).
Trait Implementations§
Source§impl Clone for TenantConfig
impl Clone for TenantConfig
Source§fn clone(&self) -> TenantConfig
fn clone(&self) -> TenantConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for TenantConfig
impl ComposeSchema for TenantConfig
Source§impl Debug for TenantConfig
impl Debug for TenantConfig
Source§impl<'de> Deserialize<'de> for TenantConfig
impl<'de> Deserialize<'de> for TenantConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TenantConfig
impl Serialize for TenantConfig
Auto Trait Implementations§
impl Freeze for TenantConfig
impl RefUnwindSafe for TenantConfig
impl Send for TenantConfig
impl Sync for TenantConfig
impl Unpin for TenantConfig
impl UnsafeUnpin for TenantConfig
impl UnwindSafe for TenantConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more