Monero C++ Library
Loading...
Searching...
No Matches
monero::key_value Struct Reference

#include <monero_wallet_rpc_model.h>

Inheritance diagram for monero::key_value:
monero::serializable_struct

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
 

Detailed Description

key-value struct which can be serialized.

Member Function Documentation

◆ to_rapidjson_val()

rapidjson::Value monero::key_value::to_rapidjson_val ( rapidjson::Document::AllocatorType & allocator) const
overridevirtual

Converts the struct to a rapidjson Value.

Parameters
allocatoris the rapidjson document allocator
Returns
the struct as a rapidjson Value

Implements monero::serializable_struct.


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