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>,
}Expand description
Workspace-specific configuration
Fields§
§base_url: Option<String>Base URL for all requests in this workspace
default_headers: HashMap<String, String>Default headers for all requests
auth: Option<AuthConfig>Authentication configuration
global_environment: EnvironmentGlobal environment (always available)
environments: Vec<Environment>Sub-environments (switchable)
active_environment_id: Option<EntityId>Currently active environment ID (None means only global)
mock_environments: MockEnvironmentManagerMock environment manager for dev/test/prod environments Manages environment-specific overrides for reality levels, chaos profiles, and drift budgets
sync: SyncConfigDirectory sync configuration
auto_encryption: AutoEncryptionConfigAutomatic encryption configuration
reality_level: Option<RealityLevel>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>AI mode for this workspace Controls how AI-generated artifacts are used at runtime
fidelity_score: Option<FidelityScore>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 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