Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
Loading...
Searching...
No Matches
aria::ValidationResult Struct Reference

#include <validator.hpp>

Public Member Functions

 operator bool () const noexcept
std::vector< std::string > error_messages () const
 Project the rich error list down to plain message strings, in the order they were produced.

Public Attributes

bool valid = true
std::vector< Errorerrors

Member Function Documentation

◆ operator bool()

aria::ValidationResult::operator bool ( ) const
inlineexplicitnoexcept

◆ error_messages()

std::vector< std::string > aria::ValidationResult::error_messages ( ) const
inlinenodiscard

Project the rich error list down to plain message strings, in the order they were produced.

Useful for legacy bindings that only know how to display strings.

Member Data Documentation

◆ valid

bool aria::ValidationResult::valid = true

◆ errors

std::vector<Error> aria::ValidationResult::errors

The documentation for this struct was generated from the following file: