pub struct ConfigurationInitializationDTO {
pub Effective: Value,
pub Defaults: Value,
pub User: Value,
pub Workspace: Value,
pub Folders: Value,
pub Memory: Value,
pub Policy: Option<Value>,
pub ConfigurationScopes: Option<Vec<(String, Value)>>,
}Expand description
A serializable struct that represents the initial configuration data structure.
This DTO is typically sent from the main application (Mountain) to a
sidecar (Cocoon) on startup. It provides the sidecar with a complete
snapshot of all configuration sources, allowing it to accurately reflect the
application’s settings state without needing to read files itself.
Fields§
§Effective: ValueThe final, merged configuration values after applying all scopes in the correct order of precedence. This is the “effective” configuration.
Defaults: ValueThe default values for all configurations, as defined by the application and its extensions.
User: ValueUser-level settings, typically from a global settings.json file.
Workspace: ValueWorkspace-level settings, from a .code-workspace file or a folder’s
.vscode/settings.json.
Folders: ValueSettings specific to individual folders in a multi-root workspace.
Memory: ValueTemporary, in-memory settings that are not persisted.
Policy: Option<Value>Policy-enforced settings that cannot be overridden by the user.
ConfigurationScopes: Option<Vec<(String, Value)>>Detailed scope information for each configuration key.
Trait Implementations§
Source§impl Clone for ConfigurationInitializationDTO
impl Clone for ConfigurationInitializationDTO
Source§fn clone(&self) -> ConfigurationInitializationDTO
fn clone(&self) -> ConfigurationInitializationDTO
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for ConfigurationInitializationDTO
impl<'de> Deserialize<'de> for ConfigurationInitializationDTO
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 ConfigurationInitializationDTO
impl RefUnwindSafe for ConfigurationInitializationDTO
impl Send for ConfigurationInitializationDTO
impl Sync for ConfigurationInitializationDTO
impl Unpin for ConfigurationInitializationDTO
impl UnsafeUnpin for ConfigurationInitializationDTO
impl UnwindSafe for ConfigurationInitializationDTO
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,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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