Function mongocrypt_sys::mongocrypt_setopt_schema_map
source ยท pub unsafe extern "C" fn mongocrypt_setopt_schema_map(
crypt: *mut mongocrypt_t,
schema_map: *mut mongocrypt_binary_t,
) -> bool
Expand description
Set a local schema map for encryption.
@param[in] crypt The @ref mongocrypt_t object. @param[in] schema_map A BSON document representing the schema map supplied by the user. The keys are collection namespaces and values are JSON schemas. The viewed data copied. It is valid to destroy @p schema_map with @ref mongocrypt_binary_destroy immediately after. @pre @p crypt has not been initialized. @returns A boolean indicating success. If false, an error status is set. Retrieve it with @ref mongocrypt_status