morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::forms::RuleOperand Struct Reference

What a rule reads of one field. More...

#include <rules.hpp>

Public Types

enum class  State : std::uint8_t { Blank , Invalid , Valid }
 Whether the field has a value a rule can use. More...

Public Attributes

State state = State::Blank
 The state.
ui::Value value {}
 The encoded value while Valid: an int, decimal, bool, string or timestamp; null otherwise, and for a value the expression language cannot hold exactly.

Detailed Description

What a rule reads of one field.

Definition at line 68 of file rules.hpp.

Member Enumeration Documentation

◆ State

enum class morph::forms::RuleOperand::State : std::uint8_t
strong

Whether the field has a value a rule can use.

Enumerator
Blank 

Nothing entered.

Invalid 

Something entered that does not encode.

Valid 

Entered and encodes; value holds the exact value.

Definition at line 70 of file rules.hpp.

Member Data Documentation

◆ state

State morph::forms::RuleOperand::state = State::Blank

The state.

Definition at line 76 of file rules.hpp.

◆ value

ui::Value morph::forms::RuleOperand::value {}

The encoded value while Valid: an int, decimal, bool, string or timestamp; null otherwise, and for a value the expression language cannot hold exactly.

Definition at line 79 of file rules.hpp.


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