pub unsafe extern "C" fn mongocrypt_ctx_setopt_algorithm_range(
    ctx: *mut mongocrypt_ctx_t,
    opts: *mut mongocrypt_binary_t,
) -> bool
Expand description

Set options for explicit encryption with the “range” algorithm.

@p opts is a BSON document of the form: { “min”: Optional, “max”: Optional, “sparsity”: Int64, “precision”: Optional, “trimFactor”: Optional }

@param[in] ctx The @ref mongocrypt_ctx_t object. @param[in] opts BSON. @pre @p ctx has not been initialized. @returns A boolean indicating success. If false, an error status is set. Retrieve it with @ref mongocrypt_ctx_status