23#include "rpc/common/Checkers.hpp"
24#include "rpc/common/Types.hpp"
26#include <boost/json/value.hpp>
27#include <boost/json/value_from.hpp>
28#include <boost/json/value_to.hpp>
43 { a.verify(lval, std::string{}) } -> std::same_as<MaybeError>;
51 { a.modify(lval, std::string{}) } -> std::same_as<MaybeError>;
58concept SomeCheck =
requires(T a, boost::json::value lval) {
59 { a.check(lval, std::string{}) } -> std::same_as<std::optional<check::Warning>>;
89 { a.spec(version) } -> std::same_as<RpcSpec const&>;
Specifies what a check used with rpc::FieldSpec must provide.
Definition Concepts.hpp:58
A process function that expects both some Input and a Context.
Definition Concepts.hpp:72
A process function that expects no Input but does take a Context.
Definition Concepts.hpp:80
Specifies what a Handler type must provide.
Definition Concepts.hpp:102
Specifies what a modifier used with rpc::FieldSpec must provide.
Definition Concepts.hpp:50
The requirements of a processor to be used with rpc::FieldSpec.
Definition Concepts.hpp:66
Specifies what a requirement used with rpc::FieldSpec must provide.
Definition Concepts.hpp:42
This namespace contains all the RPC logic and handlers.
Definition AMMHelpers.cpp:37
std::expected< OutputType, Status > HandlerReturnType
Return type for each individual handler.
Definition Types.hpp:81