20#ifndef ORES_IAM_MESSAGING_SIGNUP_PROTOCOL_HPP
21#define ORES_IAM_MESSAGING_SIGNUP_PROTOCOL_HPP
27#include <boost/uuid/uuid.hpp>
28#include "ores.comms/messaging/message_types.hpp"
67 static std::expected<signup_request, ores::utility::serialization::error_code>
81 std::string error_message;
82 boost::uuids::uuid account_id;
101 static std::expected<signup_response, ores::utility::serialization::error_code>
Network messaging infrastructure for the IAM module.
Definition account_history_protocol.hpp:33
Request to create a new user account via self-registration.
Definition signup_protocol.hpp:46
std::vector< std::byte > serialize() const
Serialize request to bytes.
Definition signup_protocol.cpp:35
static std::expected< signup_request, ores::utility::serialization::error_code > deserialize(std::span< const std::byte > data)
Deserialize request from bytes.
Definition signup_protocol.cpp:44
Response containing signup result.
Definition signup_protocol.hpp:79
std::vector< std::byte > serialize() const
Serialize response to bytes.
Definition signup_protocol.cpp:68
static std::expected< signup_response, ores::utility::serialization::error_code > deserialize(std::span< const std::byte > data)
Deserialize response from bytes.
Definition signup_protocol.cpp:78