@@ -608,7 +608,7 @@ pub struct CommandError {
608
608
pub code_name : String ,
609
609
610
610
/// A description of the error that occurred.
611
- #[ serde( rename = "errmsg" ) ]
611
+ #[ serde( rename = "errmsg" , default = "String::new" ) ]
612
612
pub message : String ,
613
613
614
614
/// The topology version reported by the server in the error response.
@@ -648,7 +648,7 @@ pub struct WriteConcernError {
648
648
pub code_name : String ,
649
649
650
650
/// A description of the error that occurred.
651
- #[ serde( rename = "errmsg" ) ]
651
+ #[ serde( rename = "errmsg" , default = "String::new" ) ]
652
652
pub message : String ,
653
653
654
654
/// A document identifying the write concern setting related to the error.
@@ -687,7 +687,7 @@ pub struct WriteError {
687
687
pub code_name : Option < String > ,
688
688
689
689
/// A description of the error that occurred.
690
- #[ serde( rename = "errmsg" ) ]
690
+ #[ serde( rename = "errmsg" , default = "String::new" ) ]
691
691
pub message : String ,
692
692
693
693
/// A document providing more information about the write error (e.g. details
@@ -725,7 +725,7 @@ pub struct BulkWriteError {
725
725
pub code_name : Option < String > ,
726
726
727
727
/// A description of the error that occurred.
728
- #[ serde( rename = "errmsg" ) ]
728
+ #[ serde( rename = "errmsg" , default = "String::new" ) ]
729
729
pub message : String ,
730
730
731
731
/// A document providing more information about the write error (e.g. details
0 commit comments