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

A finding of load-time validation that does not refuse the document. More...

#include <document.hpp>

Public Member Functions

std::string message (std::string_view document) const
 The warning as one line of text.

Public Attributes

LoadWarningKind kind = LoadWarningKind::Uncovered
 What it is about.
std::string path
 The JSON Pointer of the declaration it names.
std::string text
 The finding, in one sentence.

Detailed Description

A finding of load-time validation that does not refuse the document.

Definition at line 514 of file document.hpp.

Member Function Documentation

◆ message()

std::string morph::ui::LoadWarning::message ( std::string_view document) const
inlinenodiscard

The warning as one line of text.

Parameters
documentThe id of the document it was found in; empty leaves it out.
Returns
document <id> at <path>: <text>, leaving out the parts that are empty.

Definition at line 525 of file document.hpp.

Member Data Documentation

◆ kind

LoadWarningKind morph::ui::LoadWarning::kind = LoadWarningKind::Uncovered

What it is about.

Definition at line 516 of file document.hpp.

◆ path

std::string morph::ui::LoadWarning::path

The JSON Pointer of the declaration it names.

Definition at line 518 of file document.hpp.

◆ text

std::string morph::ui::LoadWarning::text

The finding, in one sentence.

Definition at line 520 of file document.hpp.


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