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