Skip to content

Commit bd87e86

Browse files
committed
add field defaults
1 parent 6a2c267 commit bd87e86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/client/csfle/client_encryption.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ impl ClientEncryption {
226226

227227
/// Options for initializing a new `ClientEncryption`.
228228
#[derive(TypedBuilder)]
229+
#[builder(field_defaults(setter(into)))]
229230
#[non_exhaustive]
230231
pub struct ClientEncryptionOptions {
231232
/// The key vault `Client`.
@@ -246,6 +247,7 @@ pub struct ClientEncryptionOptions {
246247

247248
/// Options for creating a data key.
248249
#[derive(TypedBuilder)]
250+
#[builder(field_defaults(setter(into)))]
249251
#[non_exhaustive]
250252
pub struct DataKeyOptions {
251253
/// The master key document, a KMS-specific key used to encrypt the new data key.
@@ -316,6 +318,7 @@ pub enum MasterKey {
316318

317319
/// The options for explicit encryption.
318320
#[derive(TypedBuilder)]
321+
#[builder(field_defaults(setter(into)))]
319322
#[non_exhaustive]
320323
pub struct EncryptOptions {
321324
/// The key to use.

0 commit comments

Comments
 (0)