pub fn insert_documents_return_new_synced<D, T>(
        &self,
        documents: D,
    ) -> Result<ResultList<Document<T>>>
    where
        D: IntoIterator<Item = NewDocument<T>>,
        T: 'static + Serialize + DeserializeOwned + Debug,
    {
        self.execute(
            InsertDocumentsReturnNew::new(self.name(), documents).with_force_wait_for_sync(true),
        )
    }
/// Inserts multiple documents into this collection, waits until the changes
/// are written to disk and returns the newly created documents.
Inserts multiple documents into this collection, waits until the changes
are written to disk and returns the newly created documents.
Inserts multiple documents into this collection waits until the changes are written to disk and returns the newly created documents .
pub fn insert_documents_return_new_synced<D, T>(
        &self,
        documents: D,
    ) -> Result<ResultList<Document<T>>>
    where
        D: IntoIterator<Item = NewDocument<T>>,
        T: 'static + Serialize + DeserializeOwned + Debug,
    {
        self.execute(
            InsertDocumentsReturnNew::new(self.name(), documents).with_force_wait_for_sync(true),
        )
    }
pub fn insert_documents_return_new_synced < D , T > ( & self , documents : D , ) -> Result < ResultList < Document < T > > > where D : IntoIterator < Item = NewDocument < T > > , T : ' static + Serialize + DeserializeOwned + Debug , { self . execute ( InsertDocumentsReturnNew :: new ( self . name ( ) , documents ) . with_force_wait_for_sync ( true ) , ) }
Inserts multiple documents into this collection, waits until the changes
are written to disk and returns the newly created documents.
Inserts multiple documents into this collection waits until the changes are written to disk and returns the newly created documents .
&self
documents
D
&self
documents
D