pub struct TenantWorkspace {
pub workspace: Workspace,
pub route_registry: Arc<RwLock<RouteRegistry>>,
pub last_accessed: DateTime<Utc>,
pub enabled: bool,
pub stats: WorkspaceStats,
}Will be extracted to mockforge-workspace crate
Expand description
Tenant workspace wrapper with isolated resources
Fields§
§workspace: WorkspaceWill be extracted to mockforge-workspace crate
Workspace metadata and configuration
route_registry: Arc<RwLock<RouteRegistry>>Will be extracted to mockforge-workspace crate
Workspace-specific route registry
last_accessed: DateTime<Utc>Will be extracted to mockforge-workspace crate
Last access timestamp
enabled: boolWill be extracted to mockforge-workspace crate
Whether this workspace is enabled
stats: WorkspaceStatsWill be extracted to mockforge-workspace crate
Workspace-specific statistics
Implementations§
Source§impl TenantWorkspace
impl TenantWorkspace
Sourcepub fn new(workspace: Workspace) -> Self
👎Deprecated: Will be extracted to mockforge-workspace crate
pub fn new(workspace: Workspace) -> Self
Will be extracted to mockforge-workspace crate
Create a new tenant workspace
Sourcepub fn id(&self) -> &str
👎Deprecated: Will be extracted to mockforge-workspace crate
pub fn id(&self) -> &str
Will be extracted to mockforge-workspace crate
Get workspace ID
Sourcepub fn name(&self) -> &str
👎Deprecated: Will be extracted to mockforge-workspace crate
pub fn name(&self) -> &str
Will be extracted to mockforge-workspace crate
Get workspace name
Sourcepub fn route_registry(&self) -> &Arc<RwLock<RouteRegistry>>
👎Deprecated: Will be extracted to mockforge-workspace crate
pub fn route_registry(&self) -> &Arc<RwLock<RouteRegistry>>
Will be extracted to mockforge-workspace crate
Get route registry
Sourcepub fn stats(&self) -> &WorkspaceStats
👎Deprecated: Will be extracted to mockforge-workspace crate
pub fn stats(&self) -> &WorkspaceStats
Will be extracted to mockforge-workspace crate
Get workspace statistics
Sourcepub fn rebuild_routes(&mut self) -> Result<()>
👎Deprecated: Will be extracted to mockforge-workspace crate
pub fn rebuild_routes(&mut self) -> Result<()>
Will be extracted to mockforge-workspace crate
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more