deref_did_url_or_document

Function deref_did_url_or_document 

Source
pub fn deref_did_url_or_document<'a>(
    url: &DidUrl,
    doc: &'a DidDocument,
) -> Option<DereferencedResource<'a>>
Expand description

Convenience: dereference without a fragment, returning the document.

If url has no fragment, returns a reference to the document itself. If it has a fragment, delegates to deref_did_url.