morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::author::MutationOptions< Action > Struct Template Reference

Options of a mutation (spec 5 §5). More...

#include <author.hpp>

Public Attributes

Body< Action > body
 The body; empty sends the body each run gives.
Mode concurrency = Mode::Exclusive
 What a run does while another is in flight.
AnyHandle serialKey
 The queue key of serial runs.
std::optional< Optimistic > optimistic
 The row a run predicts before its reply.
Commands onSuccess
 Commands run after a success.
Commands onError
 Commands run after a failure.
bool offlineQueue = false
 Whether a run that cannot reach the server is queued offline.

Detailed Description

template<typename Action>
struct morph::ui::author::MutationOptions< Action >

Options of a mutation (spec 5 §5).

Template Parameters
ActionThe action it runs.

Definition at line 1700 of file author.hpp.

Member Data Documentation

◆ body

The body; empty sends the body each run gives.

Definition at line 1702 of file author.hpp.

◆ concurrency

What a run does while another is in flight.

Definition at line 1704 of file author.hpp.

◆ serialKey

template<typename Action>
AnyHandle morph::ui::author::MutationOptions< Action >::serialKey

The queue key of serial runs.

Definition at line 1706 of file author.hpp.

◆ optimistic

template<typename Action>
std::optional<Optimistic> morph::ui::author::MutationOptions< Action >::optimistic

The row a run predicts before its reply.

Definition at line 1708 of file author.hpp.

◆ onSuccess

template<typename Action>
Commands morph::ui::author::MutationOptions< Action >::onSuccess

Commands run after a success.

Definition at line 1710 of file author.hpp.

◆ onError

template<typename Action>
Commands morph::ui::author::MutationOptions< Action >::onError

Commands run after a failure.

Definition at line 1712 of file author.hpp.

◆ offlineQueue

template<typename Action>
bool morph::ui::author::MutationOptions< Action >::offlineQueue = false

Whether a run that cannot reach the server is queued offline.

Definition at line 1714 of file author.hpp.


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