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

Response confirming country deletion(s). More...

#include <country_protocol.hpp>

Collaboration diagram for delete_country_response:
Collaboration graph

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

std::vector< delete_country_resultresults
 

Detailed Description

Response confirming country deletion(s).

Contains one result per requested country, indicating individual success or failure. Supports partial success in batch operations.

Member Function Documentation

◆ serialize()

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

Serialize response to bytes.

Format:

  • 4 bytes: count (number of results)
  • For each result:
    • 2 bytes: alpha2_code length
    • N bytes: alpha2_code (UTF-8)
    • 1 byte: success (0 or 1)
    • 2 bytes: message length
    • N bytes: message (UTF-8)