userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
registered_config_meta.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/dynamic_config/registered_config_meta.hpp
4
/// @brief @copybrief dynamic_config::RegisteredConfigMeta
5
6
#
include
<
string_view
>
7
8
#
include
<
userver
/
dynamic_config
/
fwd
.
hpp
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
dynamic_config {
13
14
/// @brief Metadata of a single registered dynamic config item.
15
/// @note All fields reference storage owned by the global registry. Obtain
16
/// metadata only after static initialization completes; the views remain valid
17
/// until the registry is destroyed.
18
struct
RegisteredConfigMeta
final
{
19
std::string_view name;
20
/// Opaque schema hash. Empty if the registering constructor did not provide
21
/// schema metadata.
22
std::string_view
schema_hash
;
23
/// Default value of this config item as a JSON string.
24
std::string_view
default_as_json_string
{};
25
};
26
27
}
// namespace dynamic_config
28
29
USERVER_NAMESPACE_END
userver
dynamic_config
registered_config_meta.hpp
Generated on
for userver by
Doxygen
1.17.0