pub fn insert_document<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()))
    }
/// Inserts a new document into this collection.
Inserts a new document into this collection.
Inserts a new document into this collection .
pub fn insert_document<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()))
    }
pub fn insert_document < 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 ( ) ) ) }
Inserts a new document into this collection.
Inserts a new document into this collection .
&self
document
D
&self
document
D