pub fn modify_document<Upd, Old, New>(
        &self,
        key: DocumentKey,
        update: DocumentUpdate<Upd>,
    ) -> Result<UpdatedDocument<Old, New>>
    where
        Upd: 'static + Serialize + Debug,
        Old: 'static + DeserializeOwned,
        New: 'static + DeserializeOwned,
    {
        let id = DocumentId::new(self.name(), key.unwrap());
        self.execute(ModifyDocument::new(id, update))
    }
/// Partially modifies an existing document.
///
/// The update argument must contain a document with the attributes
/// to patch (the patch document). All attributes from the patch document
/// will be added to the existing document if they do not exist yet or
/// overwritten in the existing document if they already exist there.
///
/// # Arguments
///
/// * `key` : The key of the document to be modified
/// * `update` : A document with the content to be modified (patch document)
Partially modifies an existing document.
The update argument must contain a document with the attributes
to patch (the patch document). All attributes from the patch document
will be added to the existing document if they do not exist yet or
overwritten in the existing document if they already exist there.
Partially modifies an existing document . The update argument must contain a document with the attributes to patch ( the patch document ) . All attributes from the patch document will be added to the existing document if they do not exist yet or overwritten in the existing document if they already exist there .
pub fn modify_document<Upd, Old, New>(
        &self,
        key: DocumentKey,
        update: DocumentUpdate<Upd>,
    ) -> Result<UpdatedDocument<Old, New>>
    where
        Upd: 'static + Serialize + Debug,
        Old: 'static + DeserializeOwned,
        New: 'static + DeserializeOwned,
    {
        let id = DocumentId::new(self.name(), key.unwrap());
        self.execute(ModifyDocument::new(id, update))
    }
pub fn modify_document < Upd , Old , New > ( & self , key : DocumentKey , update : DocumentUpdate < Upd > , ) -> Result < UpdatedDocument < Old , New > > where Upd : ' static + Serialize + Debug , Old : ' static + DeserializeOwned , New : ' static + DeserializeOwned , { let id = DocumentId :: new ( self . name ( ) , key . unwrap ( ) ) ; self . execute ( ModifyDocument :: new ( id , update ) ) }
Partially modifies an existing document.
Partially modifies an existing document .
&self
key
DocumentKey
update
DocumentUpdate<Upd>
&self
key
DocumentKey
update
DocumentUpdate<Upd>