ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
save_account_response Struct Referencefinal

Response from saving an account. More...

#include <account_protocol.hpp>

Collaboration diagram for save_account_response:
Collaboration graph

Public Member Functions

std::vector< std::byte > serialize () const
 Serialize response to bytes.
 

Static Public Member Functions

static std::expected< save_account_response, ores::utility::serialization::error_code > deserialize (std::span< const std::byte > data)
 Deserialize response from bytes.
 

Public Attributes

bool success = false
 
std::string message
 
boost::uuids::uuid account_id
 

Detailed Description

Response from saving an account.

Member Function Documentation

◆ serialize()

std::vector< std::byte > serialize ( ) const

Serialize response to bytes.

Format:

  • 1 byte: success (boolean)
  • 2 bytes: message length
  • N bytes: message (UTF-8)
  • 16 bytes: account_id (UUID)