File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ enum BulkAction {
48
48
///
49
49
/// the specific bulk action metadata such as the id of the source document, index, etc.
50
50
#[ serde_with:: skip_serializing_none]
51
- #[ derive( Serialize , Default ) ]
51
+ #[ derive( Serialize , Default , Clone ) ]
52
52
struct BulkMetadata {
53
53
_index : Option < String > ,
54
54
// TODO: intentionally omit type for now, as it's going away.
@@ -68,6 +68,7 @@ struct BulkMetadata {
68
68
///
69
69
/// The header contains the bulk action and the specific action metadata
70
70
/// such as the id of the source document, index, etc.
71
+ #[ derive( Clone ) ]
71
72
struct BulkHeader {
72
73
action : BulkAction ,
73
74
metadata : BulkMetadata ,
@@ -152,6 +153,7 @@ impl Serialize for BulkHeader {
152
153
/// # Ok(())
153
154
/// # }
154
155
/// ```
156
+ #[ derive( Clone ) ]
155
157
pub struct BulkOperation < B > {
156
158
header : BulkHeader ,
157
159
source : Option < B > ,
You can’t perform that action at this time.
0 commit comments