|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
A query or mutation as the inspector lists it. More...
#include <inspector.hpp>
Public Attributes | |
| std::string | name |
| The declared name. | |
| std::string | scope |
| Where it is declared: screen, nested (a dialog's, drawer's, switch case's or row's scope) or app. | |
| bool | mutation = false |
| Whether it is a mutation. | |
| std::string | model |
| The model type. | |
| std::string | action |
| The action it runs. | |
| std::string | key |
| The cache key: model type, instance, action and canonical body; empty for an idle query and a mutation. | |
| std::string | state |
| idle, pending, fresh, stale or error. | |
| std::optional< std::chrono::milliseconds > | age |
| How long ago the shown value arrived, on the session's clock; empty before any reply and for a mutation. | |
| std::string | lastError |
| The last failure's text; empty when none. | |
A query or mutation as the inspector lists it.
Definition at line 41 of file inspector.hpp.
| std::string morph::ui::InspectedQuery::name |
The declared name.
Definition at line 43 of file inspector.hpp.
| std::string morph::ui::InspectedQuery::scope |
Where it is declared: screen, nested (a dialog's, drawer's, switch case's or row's scope) or app.
Definition at line 45 of file inspector.hpp.
| bool morph::ui::InspectedQuery::mutation = false |
Whether it is a mutation.
Definition at line 47 of file inspector.hpp.
| std::string morph::ui::InspectedQuery::model |
The model type.
Definition at line 49 of file inspector.hpp.
| std::string morph::ui::InspectedQuery::action |
The action it runs.
Definition at line 51 of file inspector.hpp.
| std::string morph::ui::InspectedQuery::key |
The cache key: model type, instance, action and canonical body; empty for an idle query and a mutation.
Definition at line 54 of file inspector.hpp.
| std::string morph::ui::InspectedQuery::state |
idle, pending, fresh, stale or error.
Definition at line 56 of file inspector.hpp.
| std::optional<std::chrono::milliseconds> morph::ui::InspectedQuery::age |
How long ago the shown value arrived, on the session's clock; empty before any reply and for a mutation.
Definition at line 59 of file inspector.hpp.
| std::string morph::ui::InspectedQuery::lastError |
The last failure's text; empty when none.
Definition at line 61 of file inspector.hpp.