pub fn replace_vertex_if_match<IfMatch, New, V>(
        &self,
        key: DocumentKey,
        new_vertex: V,
        if_match: IfMatch,
    ) -> Result<UpdatedDocumentHeader>
    where
        IfMatch: Into<String>,
        New: 'static + Serialize + Debug,
        V: Into<NewDocument<New>>,
    {
        let vertex_id = DocumentId::new(self.name(), key.unwrap());
        self.execute(
            ReplaceVertex::new(self.graph_name(), vertex_id, new_vertex.into())
                .with_if_match(if_match),
        )
    }
/// Replaces an existing vertex with a new vertex if the match condition
/// is met.
///
/// # Arguments
///
/// * `key` : The key of the vertex to be replaced
/// * `new_vertex` : The new vertex
/// * `if_match` : The match condition that must be met to replace a vertex
Replaces an existing vertex with a new vertex if the match condition
is met.
Replaces an existing vertex with a new vertex if the match condition is met .
pub fn replace_vertex_if_match<IfMatch, New, V>(
        &self,
        key: DocumentKey,
        new_vertex: V,
        if_match: IfMatch,
    ) -> Result<UpdatedDocumentHeader>
    where
        IfMatch: Into<String>,
        New: 'static + Serialize + Debug,
        V: Into<NewDocument<New>>,
    {
        let vertex_id = DocumentId::new(self.name(), key.unwrap());
        self.execute(
            ReplaceVertex::new(self.graph_name(), vertex_id, new_vertex.into())
                .with_if_match(if_match),
        )
    }
pub fn replace_vertex_if_match < IfMatch , New , V > ( & self , key : DocumentKey , new_vertex : V , if_match : IfMatch , ) -> Result < UpdatedDocumentHeader > where IfMatch : Into < String > , New : ' static + Serialize + Debug , V : Into < NewDocument < New > > , { let vertex_id = DocumentId :: new ( self . name ( ) , key . unwrap ( ) ) ; self . execute ( ReplaceVertex :: new ( self . graph_name ( ) , vertex_id , new_vertex . into ( ) ) . with_if_match ( if_match ) , ) }
Replaces an existing vertex with a new vertex if the match condition
is met.
Replaces an existing vertex with a new vertex if the match condition is met .
&self
key
DocumentKey
new_vertex
V
if_match
IfMatch
&self
key
DocumentKey
new_vertex
V
if_match
IfMatch