morph
0.1.0
Asynchronous bridge between GUI thread and business models
Toggle main menu visibility
Loading...
Searching...
No Matches
blank_as.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
3
#pragma once
4
5
/// @file forms/blank_as.hpp
6
/// @brief `morph::forms::BlankAs`: what a blank string field submits.
7
///
8
/// Its own header because both the schema emitters (`forms.hpp`) and the forms engine's field model
9
/// (`forms/engine/field_model.hpp`) name it, and the field model must not include the emitters.
10
11
#include <cstdint>
12
13
namespace
morph::forms {
14
15
/// @brief What a renderer submits for a string field the user left blank
16
/// (`FieldMeta::blankAs`).
17
enum class
BlankAs
: std::uint8_t {
18
/// Blank is "no value": the member is left out of the payload (the default).
19
Omit
,
20
/// Blank, once the field was prefilled or edited, is an explicit `""`;
21
/// emitted as `"x-blankAs": "empty"`.
22
Empty
,
23
};
24
25
}
// namespace morph::forms
morph::forms::BlankAs
BlankAs
What a renderer submits for a string field the user left blank (FieldMeta::blankAs).
Definition
blank_as.hpp:17
morph::forms::BlankAs::Omit
@ Omit
Blank is "no value": the member is left out of the payload (the default).
Definition
blank_as.hpp:19
morph::forms::BlankAs::Empty
@ Empty
Definition
blank_as.hpp:22
morph
forms
blank_as.hpp
Generated by
1.17.0