6161 body : document,
6262 action : Some ( action. into ( ) ) ,
6363 dirty_values : params. and_then ( |d| d. dirty_values ) , // Or expose this as an argument if needed
64- _phantom : core:: marker:: PhantomData ,
6564 } ;
6665 execute_wrapper ! ( self , documents_api:: index_document, params)
6766 }
7877 pub async fn import_jsonl (
7978 & self ,
8079 documents_jsonl : impl Into < Cow < ' _ , str > > ,
81- params : ImportDocumentsParameters < ' _ > ,
80+ params : ImportDocumentsParameters ,
8281 ) -> Result < String , Error < documents_api:: ImportDocumentsError > > {
8382 let params = documents_api:: ImportDocumentsParams {
8483 body : documents_jsonl. into ( ) ,
9089 remote_embedding_batch_size : params. remote_embedding_batch_size ,
9190 return_doc : params. return_doc ,
9291 return_id : params. return_id ,
93- _phantom : core:: marker:: PhantomData ,
9492 } ;
9593 execute_wrapper ! ( self , documents_api:: import_documents, params)
9694 }
@@ -108,7 +106,6 @@ where
108106 exclude_fields : params. exclude_fields ,
109107 filter_by : params. filter_by ,
110108 include_fields : params. include_fields ,
111- _phantom : core:: marker:: PhantomData ,
112109 } ;
113110 execute_wrapper ! ( self , documents_api:: export_documents, params)
114111 }
@@ -128,7 +125,6 @@ where
128125 batch_size : params. batch_size ,
129126 ignore_not_found : params. ignore_not_found ,
130127 truncate : params. truncate ,
131- _phantom : core:: marker:: PhantomData ,
132128 } ;
133129 execute_wrapper ! ( self , documents_api:: delete_documents, params)
134130 }
@@ -217,7 +213,6 @@ where
217213 nl_query : params. nl_query ,
218214 enable_analytics : params. enable_analytics ,
219215 synonym_sets : params. synonym_sets ,
220- _phantom : core:: marker:: PhantomData ,
221216 } ;
222217 execute_wrapper ! ( self , documents_api:: search_collection, search_params)
223218 }
@@ -279,7 +274,6 @@ where
279274 collection_name : self . collection_name . into ( ) ,
280275 filter_by : params. filter_by ,
281276 body : document,
282- _phantom : core:: marker:: PhantomData ,
283277 } ;
284278 execute_wrapper ! ( self , documents_api:: update_documents, params)
285279 }
0 commit comments