GetConfiguration

Function GetConfiguration 

Source
pub fn GetConfiguration(
    Section: Option<String>,
    OverridesValue: Value,
) -> ActionEffect<Arc<dyn ConfigurationProvider>, CommonError, Value>
Expand description

Creates an effect that, when executed, will retrieve the final, merged configuration value for a given section, applying any specified overrides.

It uses the ConfigurationProvider capability from the environment to perform the operation.

§Parameters

  • Section: An optional, dot-separated key to a specific configuration section. If None, the entire configuration object is returned.
  • OverridesValue: A serde_json::Value representing the ConfigurationOverridesDTO, which can specify a resource or language scope.

§Returns

An ActionEffect that resolves with a serde_json::Value containing the requested configuration.