pub fn modify_document_if_match_opt<IfMatch, Upd, Old, New>(
        &self,
        key: DocumentKey,
        update: DocumentUpdate<Upd>,
        if_match: IfMatch,
        options: DocumentModifyOptions,
    ) -> Result<UpdatedDocument<Old, New>>
    where
        IfMatch: Into<String>,
        Upd: 'static + Serialize + Debug,
        Old: 'static + DeserializeOwned,
        New: 'static + DeserializeOwned,
    {
        let id = DocumentId::new(self.name(), key.unwrap());
        self.execute(
            ModifyDocument::new(id, update)
                .with_if_match(if_match)
                .with_options(options),
        )
    }
/// Partially modifies an existing document if the match condition is met.
/// This function allows to specify detailed options for the modify method.
///
/// 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)
/// * `if_match` : The match condition that must be met to modify a
///   document
/// * `options` : Additional options for the modify method
Partially modifies an existing document if the match condition is met.
This function allows to specify detailed options for the modify method.

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 if the match condition is met . This function allows to specify detailed options for the modify method . 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_if_match_opt<IfMatch, Upd, Old, New>(
        &self,
        key: DocumentKey,
        update: DocumentUpdate<Upd>,
        if_match: IfMatch,
        options: DocumentModifyOptions,
    ) -> Result<UpdatedDocument<Old, New>>
    where
        IfMatch: Into<String>,
        Upd: 'static + Serialize + Debug,
        Old: 'static + DeserializeOwned,
        New: 'static + DeserializeOwned,
    {
        let id = DocumentId::new(self.name(), key.unwrap());
        self.execute(
            ModifyDocument::new(id, update)
                .with_if_match(if_match)
                .with_options(options),
        )
    }
pub fn modify_document_if_match_opt < IfMatch , Upd , Old , New > ( & self , key : DocumentKey , update : DocumentUpdate < Upd > , if_match : IfMatch , options : DocumentModifyOptions , ) -> Result < UpdatedDocument < Old , New > > where IfMatch : Into < String > , Upd : ' static + Serialize + Debug , Old : ' static + DeserializeOwned , New : ' static + DeserializeOwned , { let id = DocumentId :: new ( self . name ( ) , key . unwrap ( ) ) ; self . execute ( ModifyDocument :: new ( id , update ) . with_if_match ( if_match ) . with_options ( options ) , ) }
Partially modifies an existing document if the match condition is met.
Partially modifies an existing document if the match condition is met .
&self
key
DocumentKey
update
DocumentUpdate<Upd>
if_match
IfMatch
options
DocumentModifyOptions
&self
key
DocumentKey
update
DocumentUpdate<Upd>
if_match
IfMatch
options
DocumentModifyOptions