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
56 void level(validation_level level);
75 void action(validation_action action);
90 stdx::optional<bsoncxx::document::view_or_value> _rule;
91 stdx::optional<validation_level> _level;
92 stdx::optional<validation_action> _action;
99 MONGOCXX_INLINE_NAMESPACE_END
102 #include <mongocxx/config/postlude.hpp>
Class representing criteria for document validation, to be applied to a collection.
Definition: validation_criteria.hpp:31
Definition: bulk_write.hpp:22
A read-only BSON document that owns its underlying buffer.
Definition: value.hpp:33
validation_level
A class to represent the different validation level options.
Definition: validation_criteria.hpp:44
validation_action
A class to represent the different validation action options.
Definition: validation_criteria.hpp:63