userver: userver/dynamic_config/registered_config_meta.hpp Source File
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
10USERVER_NAMESPACE_BEGIN
11
12namespace 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.
18struct 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
29USERVER_NAMESPACE_END