pub struct MultiTenantConfig {
pub enabled: bool,
pub routing_strategy: RoutingStrategy,
pub workspace_prefix: String,
pub default_workspace: String,
pub max_workspaces: Option<usize>,
pub workspace_ports: HashMap<String, u16>,
pub auto_discover: bool,
pub config_directory: Option<String>,
}Will be extracted to mockforge-workspace crate
Expand description
Multi-tenant configuration
Fieldsยง
ยงenabled: boolWill be extracted to mockforge-workspace crate
Enable multi-tenant mode
routing_strategy: RoutingStrategyWill be extracted to mockforge-workspace crate
Routing strategy (path-based, port-based, or both)
workspace_prefix: StringWill be extracted to mockforge-workspace crate
Workspace path prefix (e.g., โ/workspaceโ or โ/wโ)
default_workspace: StringWill be extracted to mockforge-workspace crate
Default workspace ID (used when no workspace specified in request)
max_workspaces: Option<usize>Will be extracted to mockforge-workspace crate
Maximum number of workspaces allowed
workspace_ports: HashMap<String, u16>Will be extracted to mockforge-workspace crate
Workspace-specific port mappings (for port-based routing)
auto_discover: boolWill be extracted to mockforge-workspace crate
Enable workspace auto-discovery from config directory
config_directory: Option<String>Will be extracted to mockforge-workspace crate
Configuration directory for workspace configs
Trait Implementationsยง
Sourceยงimpl Clone for MultiTenantConfig
impl Clone for MultiTenantConfig
Sourceยงfn clone(&self) -> MultiTenantConfig
fn clone(&self) -> MultiTenantConfig
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for MultiTenantConfig
impl Debug for MultiTenantConfig
Sourceยงimpl Default for MultiTenantConfig
impl Default for MultiTenantConfig
Sourceยงimpl<'de> Deserialize<'de> for MultiTenantConfig
impl<'de> Deserialize<'de> for MultiTenantConfig
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>,
Sourceยงimpl JsonSchema for MultiTenantConfig
impl JsonSchema for MultiTenantConfig
Sourceยงfn schema_name() -> String
fn schema_name() -> String
Sourceยงfn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Sourceยงfn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Sourceยงfn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreAuto Trait Implementationsยง
impl Freeze for MultiTenantConfig
impl RefUnwindSafe for MultiTenantConfig
impl Send for MultiTenantConfig
impl Sync for MultiTenantConfig
impl Unpin for MultiTenantConfig
impl UnsafeUnpin for MultiTenantConfig
impl UnwindSafe for MultiTenantConfig
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