pub struct InMemoryStorageStats {
pub tenant_count: usize,
pub resource_type_count: usize,
pub total_resources: usize,
}Expand description
Statistics about the current state of in-memory storage.
Fields§
§tenant_count: usizeNumber of tenants with data
resource_type_count: usizeNumber of resource types across all tenants
total_resources: usizeTotal number of individual resources
Trait Implementations§
Source§impl Clone for InMemoryStorageStats
impl Clone for InMemoryStorageStats
Source§fn clone(&self) -> InMemoryStorageStats
fn clone(&self) -> InMemoryStorageStats
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 InMemoryStorageStats
impl Debug for InMemoryStorageStats
Source§impl PartialEq for InMemoryStorageStats
impl PartialEq for InMemoryStorageStats
impl Eq for InMemoryStorageStats
impl StructuralPartialEq for InMemoryStorageStats
Auto Trait Implementations§
impl Freeze for InMemoryStorageStats
impl RefUnwindSafe for InMemoryStorageStats
impl Send for InMemoryStorageStats
impl Sync for InMemoryStorageStats
impl Unpin for InMemoryStorageStats
impl UnwindSafe for InMemoryStorageStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> TenantValidator for T
impl<T> TenantValidator for T
Source§fn validate_tenant_context(
&self,
expected_tenant_id: &str,
context: &RequestContext,
) -> Result<(), String>
fn validate_tenant_context( &self, expected_tenant_id: &str, context: &RequestContext, ) -> Result<(), String>
Validate that the context has the expected tenant.
Source§fn validate_single_tenant_context(
&self,
context: &RequestContext,
) -> Result<(), String>
fn validate_single_tenant_context( &self, context: &RequestContext, ) -> Result<(), String>
Validate that the context is for single-tenant operation.
Source§fn require_tenant_context(&self, context: &RequestContext) -> Result<(), String>
fn require_tenant_context(&self, context: &RequestContext) -> Result<(), String>
Extract tenant context or return error for multi-tenant operations.