userver: dynamic_config::ConfigDefault Struct Reference
Loading...
Searching...
No Matches
dynamic_config::ConfigDefault Struct Referencefinal

#include <userver/dynamic_config/snapshot.hpp>

Detailed Description

A config name-value pair for usage in dynamic_config::Key constructors.

Definition at line 45 of file snapshot.hpp.

Public Member Functions

template<typename T>
 ConfigDefault (std::string_view name, const T &value)
 ConfigDefault (std::string_view name, DefaultAsJsonString default_json)
 ConfigDefault (std::string_view name, DefaultAsJsonString default_json, SchemaHash schema_hash)

Public Attributes

std::string_view name
std::string default_json
std::string schema_hash

Constructor & Destructor Documentation

◆ ConfigDefault() [1/2]

template<typename T>
dynamic_config::ConfigDefault::ConfigDefault ( std::string_view name,
const T & value )

Definition at line 216 of file snapshot.hpp.

◆ ConfigDefault() [2/2]

dynamic_config::ConfigDefault::ConfigDefault ( std::string_view name,
DefaultAsJsonString default_json,
SchemaHash schema_hash )
Warning
The schema hash must be supplied by code generation. userver treats it as an opaque value and does not calculate it.

Member Data Documentation

◆ default_json

std::string dynamic_config::ConfigDefault::default_json

Definition at line 55 of file snapshot.hpp.

◆ name

std::string_view dynamic_config::ConfigDefault::name

Definition at line 54 of file snapshot.hpp.

◆ schema_hash

std::string dynamic_config::ConfigDefault::schema_hash

Definition at line 56 of file snapshot.hpp.


The documentation for this struct was generated from the following file: