Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
rpc::meta::Section Class Referencefinal

A meta-processor that acts as a spec for a sub-object/section. More...

#include <MetaProcessors.hpp>

Public Member Functions

 Section (std::initializer_list< FieldSpec > specs)
 Construct new section validator from a list of specs.
 
MaybeError verify (boost::json::value &value, std::string_view key) const
 Verify that the JSON value representing the section is valid according to the given specs.
 

Detailed Description

A meta-processor that acts as a spec for a sub-object/section.

Constructor & Destructor Documentation

◆ Section()

rpc::meta::Section::Section ( std::initializer_list< FieldSpec > specs)
inlineexplicit

Construct new section validator from a list of specs.

Parameters
specsList of specs FieldSpec

Member Function Documentation

◆ verify()

MaybeError rpc::meta::Section::verify ( boost::json::value & value,
std::string_view key ) const
nodiscard

Verify that the JSON value representing the section is valid according to the given specs.

Parameters
valueThe JSON value representing the outer object
keyThe key used to retrieve the section from the outer object
Returns
Possibly an error

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