|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
Rule: field must be engaged whenever Cond holds; vacuously satisfied (not required) while the condition does not hold.
More...
#include <forms.hpp>
Public Member Functions | |
| constexpr bool | test (const A &action) const noexcept |
Evaluates the rule against action. | |
| glz::generic_u64 | emitNode () const |
| Emits this rule's x-rules JSON node. | |
Public Attributes | |
| V A::* | field |
| Pointer to the member this rule may require. | |
| Cond | when |
| The condition that, when true, makes field required. | |
Static Public Attributes | |
| static constexpr detail::RuleKind | kind = detail::RuleKind::RequiredWhen |
| The wire "kind" this rule emits: "requiredWhen". | |
| static constexpr bool | isPresentation = false |
| Validation rule (not presentation): participates in the gate. | |
Rule: field must be engaged whenever Cond holds; vacuously satisfied (not required) while the condition does not hold.
| V | Field member type (must satisfy EngageableField). |
| A | Action type the field belongs to. |
| Cond | Condition node type (e.g. Engaged<V2, A>). |
|
inlinenodiscardconstexprnoexcept |
|
inlinenodiscard |
Emits this rule's x-rules JSON node.
| V A::* morph::forms::RequiredWhen< V, A, Cond >::field |
| Cond morph::forms::RequiredWhen< V, A, Cond >::when |
|
staticconstexpr |
The wire "kind" this rule emits: "requiredWhen".
|
staticconstexpr |