pub fn UpdateConfiguration(
Key: String,
ValueToSet: Value,
TargetAsU32: u32,
OverridesValue: Value,
ScopeToLanguage: Option<bool>,
) -> ActionEffect<Arc<dyn ConfigurationProvider>, CommonError, ()>Expand description
Creates an effect that, when executed, will update a configuration value at a specific key and target scope (e.g., User or WorkSpace settings).
It uses the ConfigurationProvider capability from the environment to
perform the operation, which will typically involve modifying a
settings.json file on disk.
§Parameters
Key: The dot-separated configuration key to update.ValueToSet: The newserde_json::Valueto set for the key.TargetAsU32: The integer representation of theConfigurationTargetenum, used for cross-language serialization.OverridesValue: A DTO specifying scope overrides (e.g., for a specific language).ScopeToLanguage: An optional flag related to language-specific settings.
§Returns
An ActionEffect that resolves to () on success.