ValidationState
Represents the validation state of a configuration value from a ConfigProvider.
A small container that holds an optional-wrapped value, validation state, and metadata about the valu...
static LayerValue valid(T val, std::string source_info)
Creates a LayerValue representing a valid configuration value.
static LayerValue not_provided()
Creates a LayerValue representing that the provider does not supply this configuration.
static LayerValue invalid(std::string error, std::string source_info, std::vector< std::string > source_details)
Creates a LayerValue representing an invalid configuration value with detailed source context.
std::string error_message
static LayerValue invalid(std::string error, std::string source_info)
Creates a LayerValue representing an invalid configuration value.
std::vector< std::string > source_details
static LayerValue valid(T val, std::string source_info, std::vector< std::string > source_details)
Creates a LayerValue representing a valid configuration value with detailed source context.