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

Outcome of an async rule invocation. More...

#include <async_validator.hpp>

Static Public Member Functions

static AsyncRuleResult passed ()
static AsyncRuleResult failed (::aria::ValidationKey key, std::string message)
 Convenience: build a single-error failure under the given key.

Public Attributes

std::vector<::aria::Errorerrors
 Hard failures. Empty iff the rule passed.
std::vector<::aria::Errorwarnings
 Soft advisories.

Detailed Description

Outcome of an async rule invocation.

The same shape covers "passed" (no error, optional warnings) and "failed" (one or more errors). Cancellation is not a result – a cancelled rule never produces an AsyncRuleResult.

Member Function Documentation

◆ passed()

AsyncRuleResult aria::async::AsyncRuleResult::passed ( )
inlinestaticnodiscard

◆ failed()

AsyncRuleResult aria::async::AsyncRuleResult::failed ( ::aria::ValidationKey key,
std::string message )
inlinestaticnodiscard

Convenience: build a single-error failure under the given key.

Member Data Documentation

◆ errors

std::vector<::aria::Error> aria::async::AsyncRuleResult::errors

Hard failures. Empty iff the rule passed.

◆ warnings

std::vector<::aria::Error> aria::async::AsyncRuleResult::warnings

Soft advisories.


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