5 #ifndef CUTELYSTVALIDATORRESULT_H 6 #define CUTELYSTVALIDATORRESULT_H 8 #include <Cutelyst/Plugins/Utils/validator_export.h> 10 #include <QJsonObject> 11 #include <QSharedDataPointer> 13 #include <QStringList> 14 #include <QVariantHash> 18 class 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;
251 #endif // CUTELYSTVALIDATORRESULT_H
The Cutelyst namespace holds all public Cutelyst API.
Provides information about performed validations.