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
47 const stdx::optional<bsoncxx::document::view_or_value>& rule()
const;
77 const stdx::optional<validation_level>& level()
const;
106 const stdx::optional<validation_action>& action()
const;
127 stdx::optional<bsoncxx::document::view_or_value> _rule;
128 stdx::optional<validation_level> _level;
129 stdx::optional<validation_action> _action;
133 return to_document();
136 MONGOCXX_INLINE_NAMESPACE_END
139 #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:57
validation_action
A class to represent the different validation action options.
Definition: validation_criteria.hpp:86