mongocrypt_ctx_setopt_algorithm_text

Function mongocrypt_ctx_setopt_algorithm_text 

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

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

NOTE: “textPreview” is experimental only and may be removed in a future non-major release. @p opts is a BSON document of the form: { “caseSensitive”: bool, . “diacriticSensitive”: bool, . “prefix”: Optional{ . “strMaxQueryLength”: Int32, . “strMinQueryLength”: Int32, . }, . “suffix”: Optional{ . “strMaxQueryLength”: Int32, . “strMinQueryLength”: Int32, . }, . “substring”: Optional{ . “strMaxLength”: Int32, . “strMaxQueryLength”: Int32, . “strMinQueryLength”: Int32, . }, }

“prefix” and “suffix” can both be set.