36struct Parser<ReaderType, WriterType,
ores::utility::uuid::tenant_id, ProcessorsType> {
37 using InputVarType =
typename ReaderType::InputVarType;
38 using OutputVarType =
typename WriterType::OutputVarType;
40 static Result<ores::utility::uuid::tenant_id> read(
41 const ReaderType& _r,
const InputVarType& _var)
noexcept {
42 const auto str_result = Parser<ReaderType, WriterType,
43 std::string, ProcessorsType>::read(_r, _var);
45 return rfl::Unexpected(Error(str_result.error()->what()));
50 return rfl::Unexpected(Error(tenant_result.error()));
52 return *tenant_result;
56 static void write(
const WriterType& _w,
58 const P& _parent)
noexcept {
60 Parser<ReaderType, WriterType, std::string, ProcessorsType>::write(
static std::expected< tenant_id, std::string > from_string(std::string_view str)
Creates a tenant_id from a string representation.
Definition tenant_id.cpp:57