pub struct WorkspaceConfig {
pub base_url: Option<String>,
pub default_headers: HashMap<String, String>,
pub auth: Option<AuthConfig>,
pub global_environment: Environment,
pub environments: Vec<Environment>,
pub active_environment_id: Option<EntityId>,
pub mock_environments: MockEnvironmentManager,
pub sync: SyncConfig,
pub auto_encryption: AutoEncryptionConfig,
pub reality_level: Option<RealityLevel>,
pub ai_mode: Option<AiMode>,
pub fidelity_score: Option<FidelityScore>,
}Will be extracted to mockforge-workspace crate
Expand description
Workspace-specific configuration
Fieldsยง
ยงbase_url: Option<String>Will be extracted to mockforge-workspace crate
Base URL for all requests in this workspace
default_headers: HashMap<String, String>Will be extracted to mockforge-workspace crate
Default headers for all requests
auth: Option<AuthConfig>Will be extracted to mockforge-workspace crate
Authentication configuration
global_environment: EnvironmentWill be extracted to mockforge-workspace crate
Global environment (always available)
environments: Vec<Environment>Will be extracted to mockforge-workspace crate
Sub-environments (switchable)
active_environment_id: Option<EntityId>Will be extracted to mockforge-workspace crate
Currently active environment ID (None means only global)
mock_environments: MockEnvironmentManagerWill be extracted to mockforge-workspace crate
Mock environment manager for dev/test/prod environments Manages environment-specific overrides for reality levels, chaos profiles, and drift budgets
sync: SyncConfigWill be extracted to mockforge-workspace crate
Directory sync configuration
auto_encryption: AutoEncryptionConfigWill be extracted to mockforge-workspace crate
Automatic encryption configuration
reality_level: Option<RealityLevel>Will be extracted to mockforge-workspace crate
Reality level for this workspace (1-5) Controls the realism of mock behavior (chaos, latency, MockAI) This is the default reality level; can be overridden per environment
ai_mode: Option<AiMode>Will be extracted to mockforge-workspace crate
AI mode for this workspace Controls how AI-generated artifacts are used at runtime
fidelity_score: Option<FidelityScore>Will be extracted to mockforge-workspace crate
Current fidelity score for this workspace Measures how close the mock is to the real upstream
Trait Implementationsยง
Sourceยงimpl Clone for WorkspaceConfig
impl Clone for WorkspaceConfig
Sourceยงfn clone(&self) -> WorkspaceConfig
fn clone(&self) -> WorkspaceConfig
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for WorkspaceConfig
impl Debug for WorkspaceConfig
Sourceยงimpl Default for WorkspaceConfig
impl Default for WorkspaceConfig
Sourceยงimpl<'de> Deserialize<'de> for WorkspaceConfig
impl<'de> Deserialize<'de> for WorkspaceConfig
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>,
Auto Trait Implementationsยง
impl Freeze for WorkspaceConfig
impl RefUnwindSafe for WorkspaceConfig
impl Send for WorkspaceConfig
impl Sync for WorkspaceConfig
impl Unpin for WorkspaceConfig
impl UnsafeUnpin for WorkspaceConfig
impl UnwindSafe for WorkspaceConfig
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