@@ -30,6 +30,7 @@ fn standard_format() {
30
30
"i64" : -55 ,
31
31
"timestamp" : Bson :: Timestamp ( Timestamp { time: 0 , increment: 229_999_444 } ) ,
32
32
"binary" : Binary { subtype: BinarySubtype :: Md5 , bytes: "thingies" . to_owned( ) . into_bytes( ) } ,
33
+ "encrypted" : Binary { subtype: BinarySubtype :: Encrypted , bytes: "secret" . to_owned( ) . into_bytes( ) } ,
33
34
"_id" : id,
34
35
"date" : Bson :: DateTime ( date) ,
35
36
} ;
@@ -38,9 +39,10 @@ fn standard_format() {
38
39
"{{ float: 2.4, string: \" hello\" , array: [\" testing\" , 1, true, [1, 2]], doc: {{ fish: \
39
40
\" in\" , a: \" barrel\" , !: 1 }}, bool: true, null: null, regexp: /s[ao]d/i, \
40
41
with_wrapped_parens: -20, code: function(x) {{ return x._id; }}, i32: 12, i64: -55, \
41
- timestamp: Timestamp(0, 229999444), binary: BinData(5, 0x{}), _id: ObjectId( \" {} \" ) , \
42
- date: Date(\" {}\" ) }}",
42
+ timestamp: Timestamp(0, 229999444), binary: BinData(5, 0x{}), encrypted: BinData(6 , \
43
+ 0x{}), _id: ObjectId( \" {} \" ), date: Date(\" {}\" ) }}",
43
44
base64:: encode( "thingies" ) ,
45
+ base64:: encode( "secret" ) ,
44
46
hex:: encode( id_string) ,
45
47
date
46
48
) ;
0 commit comments