pub fn merge(&self, document: &IotaDocument) -> Result<IotaDocument> {
    let data: DiffDocument = DiffDocument::from_json(&self.diff)?;
    let core: CoreDocument = document.serde_into()?;
    let this: CoreDocument = Diff::merge(&core, data)?;

    Ok(this.serde_into()?)
  }
/// Returns a new DID Document which is the result of merging `self`
/// with the given Document.
Returns a new DID Document which is the result of merging `self`
with the given Document.
Returns a new DID Document which is the result of merging ` self ` with the given Document .
pub fn merge(&self, document: &IotaDocument) -> Result<IotaDocument> {
    let data: DiffDocument = DiffDocument::from_json(&self.diff)?;
    let core: CoreDocument = document.serde_into()?;
    let this: CoreDocument = Diff::merge(&core, data)?;
    Ok(this.serde_into()?)
  }
pub fn merge ( & self , document : & IotaDocument ) -> Result < IotaDocument > { let data : DiffDocument = DiffDocument :: from_json ( & self . diff ) ? ; let core : CoreDocument = document . serde_into ( ) ? ; let this : CoreDocument = Diff :: merge ( & core , data ) ? ; Ok ( this . serde_into ( ) ? ) }
Returns a new DID Document which is the result of merging `self`
with the given Document.
Returns a new DID Document which is the result of merging ` self ` with the given Document .
&self
document
&IotaDocument
&self
document
&IotaDocument