pub struct TenantWorkspace {
pub workspace: Workspace,
pub route_registry: Arc<RwLock<RouteRegistry>>,
pub last_accessed: DateTime<Utc>,
pub enabled: bool,
pub stats: WorkspaceStats,
}
Expand description
Tenant workspace wrapper with isolated resources
Fields§
§workspace: Workspace
Workspace metadata and configuration
route_registry: Arc<RwLock<RouteRegistry>>
Workspace-specific route registry
last_accessed: DateTime<Utc>
Last access timestamp
enabled: bool
Whether this workspace is enabled
stats: WorkspaceStats
Workspace-specific statistics
Implementations§
Source§impl TenantWorkspace
impl TenantWorkspace
Sourcepub fn route_registry(&self) -> &Arc<RwLock<RouteRegistry>>
pub fn route_registry(&self) -> &Arc<RwLock<RouteRegistry>>
Get route registry
Sourcepub fn stats(&self) -> &WorkspaceStats
pub fn stats(&self) -> &WorkspaceStats
Get workspace statistics
Sourcepub fn rebuild_routes(&mut self) -> Result<()>
pub fn rebuild_routes(&mut self) -> Result<()>
Rebuild route registry from workspace routes
Trait Implementations§
Source§impl Clone for TenantWorkspace
impl Clone for TenantWorkspace
Source§fn clone(&self) -> TenantWorkspace
fn clone(&self) -> TenantWorkspace
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 moreAuto Trait Implementations§
impl Freeze for TenantWorkspace
impl RefUnwindSafe for TenantWorkspace
impl Send for TenantWorkspace
impl Sync for TenantWorkspace
impl Unpin for TenantWorkspace
impl UnwindSafe for TenantWorkspace
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