17 #include <bsoncxx/document/view_or_value.hpp>
18 #include <bsoncxx/stdx/optional.hpp>
19 #include <mongocxx/stdx.hpp>
21 #include <mongocxx/config/prelude.hpp>
24 MONGOCXX_INLINE_NAMESPACE_BEGIN
51 const stdx::optional<bsoncxx::document::view_or_value>& rule()
const;
85 const stdx::optional<validation_level>& level()
const;
118 const stdx::optional<validation_action>& action()
const;
140 stdx::optional<bsoncxx::document::view_or_value> _rule;
141 stdx::optional<validation_level> _level;
142 stdx::optional<validation_action> _action;
145 MONGOCXX_API
bool MONGOCXX_CALL operator==(
const validation_criteria& lhs,
146 const validation_criteria& rhs);
147 MONGOCXX_API
bool MONGOCXX_CALL operator!=(
const validation_criteria& lhs,
148 const validation_criteria& rhs);
151 return to_document_deprecated();
154 MONGOCXX_INLINE_NAMESPACE_END
157 #include <mongocxx/config/postlude.hpp>