pub fn replace_vertex<New, V>(
        &self,
        key: DocumentKey,
        new_vertex: V,
    ) -> Result<UpdatedDocumentHeader>
    where
        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(),
        ))
    }
/// Replaces an existing vertex with a new vertex.
///
/// # Arguments
///
/// * `key` : The key of the vertex to be replaced
/// * `new_vertex` : The new vertex
Replaces an existing vertex with a new vertex.
Replaces an existing vertex with a new vertex .
pub fn replace_vertex<New, V>(
        &self,
        key: DocumentKey,
        new_vertex: V,
    ) -> Result<UpdatedDocumentHeader>
    where
        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(),
        ))
    }
pub fn replace_vertex < New , V > ( & self , key : DocumentKey , new_vertex : V , ) -> Result < UpdatedDocumentHeader > where 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 ( ) , ) ) }
Replaces an existing vertex with a new vertex.
Replaces an existing vertex with a new vertex .
&self
key
DocumentKey
new_vertex
V
&self
key
DocumentKey
new_vertex
V