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

(field_path, rule_id) locator for a validation message. More...

#include <validation_key.hpp>

Public Member Functions

bool empty () const noexcept
std::string to_string () const
 Stable string view of the form "<field_path>#<rule_id>".

Public Attributes

std::string field_path
 e.g. "user.email"; empty = form-level
std::string rule_id
 e.g. "required"; empty = anonymous

Detailed Description

(field_path, rule_id) locator for a validation message.

Member Function Documentation

◆ empty()

bool aria::ValidationKey::empty ( ) const
inlinenodiscardnoexcept

◆ to_string()

std::string aria::ValidationKey::to_string ( ) const
inlinenodiscard

Stable string view of the form "<field_path>#<rule_id>".

Member Data Documentation

◆ field_path

std::string aria::ValidationKey::field_path

e.g. "user.email"; empty = form-level

◆ rule_id

std::string aria::ValidationKey::rule_id

e.g. "required"; empty = anonymous


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