pub struct TenantConfig {
pub id: String,
pub limits: TenantLimits,
pub policy: TenantPolicy,
}Fields§
§id: StringTenant identifier (namespaces policy and runtime state).
limits: TenantLimits§policy: TenantPolicySprint 2+: policy controls (strict by default).
Implementations§
Source§impl TenantConfig
impl TenantConfig
pub fn validate(&self) -> Result<(), WsPrismError>
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 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<TenantConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TenantConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TenantConfig
impl RefUnwindSafe for TenantConfig
impl Send for TenantConfig
impl Sync for TenantConfig
impl Unpin 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