5#ifndef CUTELYSTVALIDATORRESULT_H
6#define CUTELYSTVALIDATORRESULT_H
8#include <Cutelyst/cutelyst_global.h>
11#include <QSharedDataPointer>
14#include <QVariantHash>
18class ValidatorResultPrivate;
113 [[nodiscard]]
bool isValid() const noexcept;
152 [[nodiscard]]
bool hasErrors(const
QString &field) const noexcept;
164 [[nodiscard]]
QJsonObject errorsJsonObject() const;
177 explicit operator
bool() const noexcept {
return isValid(); }
190 [[nodiscard]] QVariantHash values() const noexcept;
222 [[nodiscard]] QVariantHash extras() const noexcept;
Provides information about performed validations.
ValidatorResult & operator=(const ValidatorResult &other) noexcept
ValidatorResult(const ValidatorResult &other) noexcept
ValidatorResult & operator=(ValidatorResult &&other) noexcept
ValidatorResult(ValidatorResult &&other) noexcept
~ValidatorResult() noexcept
The Cutelyst namespace holds all public Cutelyst API.