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 sync: SyncConfig,
pub auto_encryption: AutoEncryptionConfig,
}
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: Environment
Global environment (always available)
environments: Vec<Environment>
Sub-environments (switchable)
active_environment_id: Option<EntityId>
Currently active environment ID (None means only global)
sync: SyncConfig
Directory sync configuration
auto_encryption: AutoEncryptionConfig
Automatic encryption configuration
Trait Implementations§
Source§impl Clone for WorkspaceConfig
impl Clone for WorkspaceConfig
Source§fn clone(&self) -> WorkspaceConfig
fn clone(&self) -> WorkspaceConfig
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 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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more