29#include <system_error>
185struct is_error_code_enum<
mongocxx::v1::server_api::errc> : true_type {};
server_api(server_api &&other) noexcept
Move constructor.
static version version_from_string(bsoncxx::v1::stdx::string_view v)
Return the given server API version as an enumerator.
version get_version() const
Return the current "version" field.
server_api & deprecation_errors(bool v)
Set the "deprecationErrors" field.
errc
Errors codes which may be returned by mongocxx::v1::server_api.
Definition server_api.hpp:155
@ invalid_version
The server API version is invalid.
Definition server_api.hpp:157
@ zero
Zero.
Definition server_api.hpp:156
~server_api()
Destroy this object.
friend std::error_code make_error_code(errc v)
Support implicit conversion to std::error_code.
Definition server_api.hpp:172
server_api & strict(bool strict)
Set the "strict" field.
version
The server API version.
Definition server_api.hpp:60
@ k_version_1
Stable API Version 1.
Definition server_api.hpp:64
static std::string version_to_string(version v)
Return the given server API version as a string.
static std::error_category const & error_category()
The error category for mongocxx::v1::server_api::errc.
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v1 macro guard postlude header.
The mongocxx v1 macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities whose ABI stability is guaranteed for documented symbols.
@ mongocxx
From the mongocxx library.
Definition exception.hpp:42
The top-level namespace within which all mongocxx library entities are declared.
Declares mongocxx::v1::server_api.
Provides std::optional-related polyfills for library API usage.
Provides std::string_view-related polyfills for library API usage.