|
Monero C++ Library
|
#include <monero_wallet_rpc_model.h>
Public Member Functions | |
| key_value (const std::string &key) | |
| key_value (const std::string &key, const std::string &value) | |
| rapidjson::Value | to_rapidjson_val (rapidjson::Document::AllocatorType &allocator) const override |
Public Member Functions inherited from monero::serializable_struct | |
| std::string | serialize () const |
Static Public Member Functions | |
| static void | from_property_tree (const boost::property_tree::ptree &node, const std::shared_ptr< key_value > &attributes) |
Public Attributes | |
| boost::optional< std::string > | m_key |
| boost::optional< std::string > | m_value |
key-value struct which can be serialized.
|
overridevirtual |
Converts the struct to a rapidjson Value.
| allocator | is the rapidjson document allocator |
Implements monero::serializable_struct.