pub fn insert_document_synced<D, T>(&self, document: D) -> Result<DocumentHeader>
    where
        D: Into<NewDocument<T>>,
        T: 'static + Serialize + DeserializeOwned + Debug,
    {
        self.execute(
            InsertDocument::new(self.name(), document.into()).with_force_wait_for_sync(true),
        )
    }
/// Inserts a new document into this collection and waits until the changes
/// are written to disk.
Inserts a new document into this collection and waits until the changes
are written to disk.
Inserts a new document into this collection and waits until the changes are written to disk .
pub fn insert_document_synced<D, T>(&self, document: D) -> Result<DocumentHeader>
    where
        D: Into<NewDocument<T>>,
        T: 'static + Serialize + DeserializeOwned + Debug,
    {
        self.execute(
            InsertDocument::new(self.name(), document.into()).with_force_wait_for_sync(true),
        )
    }
pub fn insert_document_synced < D , T > ( & self , document : D ) -> Result < DocumentHeader > where D : Into < NewDocument < T > > , T : ' static + Serialize + DeserializeOwned + Debug , { self . execute ( InsertDocument :: new ( self . name ( ) , document . into ( ) ) . with_force_wait_for_sync ( true ) , ) }
Inserts a new document into this collection and waits until the changes
are written to disk.
Inserts a new document into this collection and waits until the changes are written to disk .
&self
document
D
&self
document
D