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

What one BRIDGE_REGISTER_RECORD declared. More...

#include <records.hpp>

Public Attributes

std::string name
 The wire name of the record type.
std::type_index type
 The record's C++ type; records and effects are matched by this identity.
std::optional< std::string > keyField
 The glaze JSON name of the key member; empty for a keyless record or one without an id member.
std::vector< std::type_index > derivedFrom
 The source types this record is derived from.
bool privateKeys = false
 True when the record's keys must not reach other principals.
bool keyIsString = false
 True when the key's raw type is std::string; false when it is integral or there is no key.

Detailed Description

What one BRIDGE_REGISTER_RECORD declared.

Definition at line 48 of file records.hpp.

Member Data Documentation

◆ name

std::string morph::record::RecordInfo::name

The wire name of the record type.

Definition at line 50 of file records.hpp.

◆ type

std::type_index morph::record::RecordInfo::type

The record's C++ type; records and effects are matched by this identity.

Definition at line 52 of file records.hpp.

◆ keyField

std::optional<std::string> morph::record::RecordInfo::keyField

The glaze JSON name of the key member; empty for a keyless record or one without an id member.

Definition at line 54 of file records.hpp.

◆ derivedFrom

std::vector<std::type_index> morph::record::RecordInfo::derivedFrom

The source types this record is derived from.

Definition at line 56 of file records.hpp.

◆ privateKeys

bool morph::record::RecordInfo::privateKeys = false

True when the record's keys must not reach other principals.

Definition at line 58 of file records.hpp.

◆ keyIsString

bool morph::record::RecordInfo::keyIsString = false

True when the key's raw type is std::string; false when it is integral or there is no key.

Definition at line 60 of file records.hpp.


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