|
Clio
develop
The XRP Ledger API server.
|
Clamp value between min and max. More...
#include <Modifiers.hpp>
Public Member Functions | |
| Clamp (Type min, Type max) | |
| Construct the modifier storing min and max values. | |
| MaybeError | modify (boost::json::value &value, std::string_view key) const |
| Clamp the value to stored min and max values. | |
Clamp value between min and max.
|
inlineexplicit |
Construct the modifier storing min and max values.
| min | |
| max |
|
inlinenodiscard |
Clamp the value to stored min and max values.
| value | The JSON value representing the outer object |
| key | The key used to retrieve the modified value from the outer object |