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;
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.