v2.0.0
Loading...
Searching...
No Matches
MNALIB::MnaVerificationResult Struct Reference

Check evaluation result. More...

#include <mna_verification.h>

Public Member Functions

QJsonObject toJson () const
QCborMap toCbor () const

Static Public Member Functions

static MnaVerificationResult fromJson (const QJsonObject &json)
static MnaVerificationResult fromCbor (const QCborMap &cbor)

Public Attributes

QString checkId
 References MnaVerificationCheck::id.
bool passed = false
 true if the expression evaluated to true
QString severity
 Echoed from the check definition.
QString message
 Formatted message: "PASS: ..." or "FAIL [error]: ...".
QVariant actualValue
 The evaluated expression result.
QDateTime evaluatedAt
 When this check was evaluated.

Detailed Description

Check evaluation result.

The result of evaluating a single verification check.

Definition at line 98 of file mna_verification.h.

Member Function Documentation

◆ fromCbor()

MnaVerificationResult MnaVerificationResult::fromCbor ( const QCborMap & cbor)
static

Definition at line 175 of file mna_verification.cpp.

◆ fromJson()

MnaVerificationResult MnaVerificationResult::fromJson ( const QJsonObject & json)
static

Definition at line 145 of file mna_verification.cpp.

◆ toCbor()

QCborMap MnaVerificationResult::toCbor ( ) const

Definition at line 159 of file mna_verification.cpp.

◆ toJson()

QJsonObject MnaVerificationResult::toJson ( ) const

Definition at line 129 of file mna_verification.cpp.

Member Data Documentation

◆ actualValue

QVariant MNALIB::MnaVerificationResult::actualValue

The evaluated expression result.

Definition at line 104 of file mna_verification.h.

◆ checkId

QString MNALIB::MnaVerificationResult::checkId

References MnaVerificationCheck::id.

Definition at line 100 of file mna_verification.h.

◆ evaluatedAt

QDateTime MNALIB::MnaVerificationResult::evaluatedAt

When this check was evaluated.

Definition at line 105 of file mna_verification.h.

◆ message

QString MNALIB::MnaVerificationResult::message

Formatted message: "PASS: ..." or "FAIL [error]: ...".

Definition at line 103 of file mna_verification.h.

◆ passed

bool MNALIB::MnaVerificationResult::passed = false

true if the expression evaluated to true

Definition at line 101 of file mna_verification.h.

◆ severity

QString MNALIB::MnaVerificationResult::severity

Echoed from the check definition.

Definition at line 102 of file mna_verification.h.


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